Add a 5x exponential backoff on 429s & 5xxs to the webhook Authenticator/Authorizer.

This commit is contained in:
CJ Cullen
2016-06-23 17:37:09 -07:00
parent e294b23674
commit 38a1042199
5 changed files with 59 additions and 10 deletions

View File

@@ -148,7 +148,7 @@ func newTokenAuthenticator(serverURL string, clientCert, clientKey, ca []byte, c
if err := json.NewEncoder(tempfile).Encode(config); err != nil {
return nil, err
}
return New(p, cacheTime)
return newWithBackoff(p, cacheTime, 0)
}
func TestTLSConfig(t *testing.T) {