mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-01-07 14:05:50 +00:00
More adjustments based on PR feedback
This commit is contained in:
@@ -46,7 +46,7 @@ type LDAPDialer interface {
|
|||||||
// LDAPDialerFunc makes it easy to use a func as an LDAPDialer.
|
// LDAPDialerFunc makes it easy to use a func as an LDAPDialer.
|
||||||
type LDAPDialerFunc func(ctx context.Context, hostAndPort string) (Conn, error)
|
type LDAPDialerFunc func(ctx context.Context, hostAndPort string) (Conn, error)
|
||||||
|
|
||||||
var _ LDAPDialer = LDAPDialerFunc(func(ctx context.Context, hostAndPort string) (Conn, error) { return nil, nil })
|
var _ LDAPDialer = LDAPDialerFunc(nil)
|
||||||
|
|
||||||
func (f LDAPDialerFunc) Dial(ctx context.Context, hostAndPort string) (Conn, error) {
|
func (f LDAPDialerFunc) Dial(ctx context.Context, hostAndPort string) (Conn, error) {
|
||||||
return f(ctx, hostAndPort)
|
return f(ctx, hostAndPort)
|
||||||
|
|||||||
Reference in New Issue
Block a user