Fixed bug with NewDefaultClientUsingUrl where backoff was not initialized leading to nil pointer error.

This commit is contained in:
Renan DelValle 2017-09-28 17:14:55 -07:00
parent 8334dde12f
commit bf354bcc0a

View file

@ -348,7 +348,9 @@ func NewDefaultClientUsingUrl(url, user, passwd string) (Realis, error) {
config.cluster = nil
// Configured for vagrant
AddBasicAuth(config, user, passwd)
config.backoff = &Backoff{Steps: 2, Duration: 10 * time.Second, Factor: 2.0, Jitter: 0.1}
r := newClient(config)
return r, nil
}