From bf354bcc0aab819415704472d24e9f39a47a68d1 Mon Sep 17 00:00:00 2001 From: Renan DelValle Date: Thu, 28 Sep 2017 17:14:55 -0700 Subject: [PATCH] Fixed bug with NewDefaultClientUsingUrl where backoff was not initialized leading to nil pointer error. --- realis.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/realis.go b/realis.go index 88a695e..6dbd94d 100644 --- a/realis.go +++ b/realis.go @@ -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 }