track discovery API change

This commit is contained in:
Yusef Napora 2020-05-07 12:19:58 -04:00 committed by vyzo
parent b2075efc96
commit 53c2eeaccf
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ func defaultDiscoverOptions() *discoverOptions {
dialTimeout := time.Minute * 2
discoverOpts := &discoverOptions{
connFactory: func(host host.Host) (*discimpl.BackoffConnector, error) {
backoff := discimpl.NewExponentialBackoff(minBackoff, maxBackoff, discimpl.FullJitter, time.Second, 5.0, 0, rngSrc)
backoff := discimpl.NewExponentialBackoff(minBackoff, maxBackoff, discimpl.FullJitter, time.Second, 5.0, 0, rand.New(rngSrc))
return discimpl.NewBackoffConnector(host, cacheSize, dialTimeout, backoff)
},
}