aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/retry/retry.cpp
diff options
context:
space:
mode:
authoranskor <anskor@yandex-team.ru>2022-02-10 16:50:18 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:18 +0300
commitdbfc9d8546687ce31ffd112c6c2d2f14be1bb4f0 (patch)
tree51436f0d49801f6430e492b4c472a80f98760a34 /library/cpp/retry/retry.cpp
parenta1b790e06e8e99cffd5157a991259f9d0f993f66 (diff)
downloadydb-dbfc9d8546687ce31ffd112c6c2d2f14be1bb4f0.tar.gz
Restoring authorship annotation for <anskor@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/retry/retry.cpp')
-rw-r--r--library/cpp/retry/retry.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/retry/retry.cpp b/library/cpp/retry/retry.cpp
index 92466cdeca..dee8b15730 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()));
+}