Skip to content

Commit eb2c1c4

Browse files
author
Divjot Arora
authored
GODRIVER-1628 Fix documentation for the default dialer (#415)
1 parent cce6057 commit eb2c1c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mongo/options/clientoptions.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,8 @@ func (c *ClientOptions) SetConnectTimeout(d time.Duration) *ClientOptions {
427427
}
428428

429429
// SetDialer specifies a custom ContextDialer to be used to create new connections to the server. The default is a
430-
// net.Dialer instance with a 300 second keepalive time.
430+
// net.Dialer with the Timeout field set to ConnectTimeout. See https://golang.org/pkg/net/#Dialer for more information
431+
// about the net.Dialer type.
431432
func (c *ClientOptions) SetDialer(d ContextDialer) *ClientOptions {
432433
c.Dialer = d
433434
return c

0 commit comments

Comments
 (0)