net/dnscache: update a comment

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/2523/head
Brad Fitzpatrick 3 years ago
parent 281d503626
commit c17d743886

@ -352,7 +352,7 @@ func Dialer(fwd DialContextFunc, dnsCache *Resolver) DialContextFunc {
const fallbackDelay = 300 * time.Millisecond
// raceDial tries to dial port on each ip in ips, starting a new race
// dial every 300ms apart, returning whichever completes first.
// dial every fallbackDelay apart, returning whichever completes first.
func raceDial(ctx context.Context, fwd DialContextFunc, network string, ips []netaddr.IP, port string) (net.Conn, error) {
ctx, cancel := context.WithCancel(ctx)
defer cancel()

Loading…
Cancel
Save