diff options
author | anskor <anskor@yandex-team.ru> | 2022-02-10 16:50:18 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:18 +0300 |
commit | c3356aebb686e7128a19f75ef61d57388131f12f (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/retry/retry.cpp | |
parent | dbfc9d8546687ce31ffd112c6c2d2f14be1bb4f0 (diff) | |
download | ydb-c3356aebb686e7128a19f75ef61d57388131f12f.tar.gz |
Restoring authorship annotation for <anskor@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/retry/retry.cpp')
-rw-r--r-- | library/cpp/retry/retry.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/retry/retry.cpp b/library/cpp/retry/retry.cpp index dee8b15730..92466cdeca 100644 --- a/library/cpp/retry/retry.cpp +++ b/library/cpp/retry/retry.cpp @@ -16,11 +16,11 @@ bool DoWithRetryOnRetCode(std::function<bool()> func, TRetryOptions retryOptions } return false; } - -TRetryOptions MakeRetryOptions(const NRetry::TRetryOptionsPB& retryOptions) { - return TRetryOptions(retryOptions.GetMaxTries(), - TDuration::MilliSeconds(retryOptions.GetInitialSleepMs()), - TDuration::MilliSeconds(retryOptions.GetRandomDeltaMs()), - TDuration::MilliSeconds(retryOptions.GetSleepIncrementMs()), - TDuration::MilliSeconds(retryOptions.GetExponentalMultiplierMs())); -} + +TRetryOptions MakeRetryOptions(const NRetry::TRetryOptionsPB& retryOptions) { + return TRetryOptions(retryOptions.GetMaxTries(), + TDuration::MilliSeconds(retryOptions.GetInitialSleepMs()), + TDuration::MilliSeconds(retryOptions.GetRandomDeltaMs()), + TDuration::MilliSeconds(retryOptions.GetSleepIncrementMs()), + TDuration::MilliSeconds(retryOptions.GetExponentalMultiplierMs())); +} |