Fixed bug with NewDefaultClientUsingUrl where backoff was not initialized leading to nil pointer error.
This commit is contained in:
parent
8334dde12f
commit
bf354bcc0a
1 changed files with 2 additions and 0 deletions
|
@ -348,7 +348,9 @@ func NewDefaultClientUsingUrl(url, user, passwd string) (Realis, error) {
|
||||||
config.cluster = nil
|
config.cluster = nil
|
||||||
// Configured for vagrant
|
// Configured for vagrant
|
||||||
AddBasicAuth(config, user, passwd)
|
AddBasicAuth(config, user, passwd)
|
||||||
|
config.backoff = &Backoff{Steps: 2, Duration: 10 * time.Second, Factor: 2.0, Jitter: 0.1}
|
||||||
r := newClient(config)
|
r := newClient(config)
|
||||||
|
|
||||||
return r, nil
|
return r, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue