aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/retry/retry_policy.h
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-21 21:20:40 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-21 21:20:40 +0300
commit06a4f28af33f3cef25b5746b6a2f8b85b1d4f76c (patch)
treef5373e49b99fd5c559814da2fc873c0872c1647c /library/cpp/retry/retry_policy.h
parent4bc75f9614e93bb89dd7c077468df9a50c409d12 (diff)
downloadydb-06a4f28af33f3cef25b5746b6a2f8b85b1d4f76c.tar.gz
intermediate changes
ref:f9eefd8eed3595f41a195fc7080bbf602b0075af
Diffstat (limited to 'library/cpp/retry/retry_policy.h')
-rw-r--r--library/cpp/retry/retry_policy.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/retry/retry_policy.h b/library/cpp/retry/retry_policy.h
index a2f94840b86..c7a3156e103 100644
--- a/library/cpp/retry/retry_policy.h
+++ b/library/cpp/retry/retry_policy.h
@@ -40,7 +40,7 @@ struct IRetryPolicy {
//! Calculate delay before next retry if next retry is allowed.
//! Returns empty maybe if retry is not allowed anymore.
- virtual TMaybe<TDuration> GetNextRetryDelay(typename TTypeTraits<TArgs>::TFuncParam... args) = 0;
+ [[nodiscard]] virtual TMaybe<TDuration> GetNextRetryDelay(typename TTypeTraits<TArgs>::TFuncParam... args) = 0;
};
virtual ~IRetryPolicy() = default;
@@ -48,7 +48,7 @@ struct IRetryPolicy {
//! Function that is called after first error
//! to find out a futher retry behaviour.
//! Retry state is expected to be created for the whole single retry session.
- virtual typename IRetryState::TPtr CreateRetryState() const = 0;
+ [[nodiscard]] virtual typename IRetryState::TPtr CreateRetryState() const = 0;
//!
//! Default implementations.