More adjustments based on PR feedback
This commit is contained in:
parent
263a33cc85
commit
5c62a9d0bd
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user