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
|
||||
// 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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue