Skip to content

Commit 92bc9c0

Browse files
authored
Update iam.h
1 parent d0133c5 commit 92bc9c0

File tree

1 file changed

+1
-1
lines changed
  • ydb/public/sdk/cpp/src/client/iam/common

1 file changed

+1
-1
lines changed

ydb/public/sdk/cpp/src/client/iam/common/iam.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class TGrpcIamCredentialsProvider : public ICredentialsProvider {
126126

127127
RequestInflight_ = false;
128128
sleepDuration = std::min(BackoffTimeout_, BACKOFF_MAX);
129-
BackoffTimeout_ *= 2;
129+
BackoffTimeout_ *= std::min(BackoffTimeout_*2, BACKOFF_MAX);
130130
}
131131

132132
Sleep(sleepDuration);

0 commit comments

Comments
 (0)