Skip to content

Commit 1eaf3f3

Browse files
fix: review comment: increasing the MaxElapsedTime for retrial
1 parent c68bf12 commit 1eaf3f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func (c Client) GetTime() (time.Time, error) {
7272
var err error
7373

7474
expBackoff := backoff.NewExponentialBackOff()
75-
expBackoff.MaxElapsedTime = 10 * time.Second
75+
expBackoff.MaxElapsedTime = 30 * time.Second
7676

7777
retryError := backoff.RetryNotify(func() error {
7878
resp, err = c.getTime()

0 commit comments

Comments
 (0)