diff options
| author | apachee <[email protected]> | 2025-10-20 12:52:52 +0300 |
|---|---|---|
| committer | apachee <[email protected]> | 2025-10-20 13:15:36 +0300 |
| commit | c36cb32e8a206a8a5d591ec5eebff3bc25a6389a (patch) | |
| tree | f6f7e4f9bf076699ec59716a0b84bbf1db1e3651 | |
| parent | 444b3752c6c7b4c9dcaaf26ecf337d105104efc7 (diff) | |
Make TThroughputThrottlerConfig equality operator const and default generated
commit_hash:c6798516ea7b2343c7c47ba115dcfaa6b56760e8
| -rw-r--r-- | yt/yt/core/concurrency/config.cpp | 7 | ||||
| -rw-r--r-- | yt/yt/core/concurrency/config.h | 2 |
2 files changed, 1 insertions, 8 deletions
diff --git a/yt/yt/core/concurrency/config.cpp b/yt/yt/core/concurrency/config.cpp index fffc2d0d693..1badd603f7f 100644 --- a/yt/yt/core/concurrency/config.cpp +++ b/yt/yt/core/concurrency/config.cpp @@ -100,13 +100,6 @@ void TRelativeThroughputThrottlerConfig::Register(TRegistrar registrar) //////////////////////////////////////////////////////////////////////////////// -bool TThroughputThrottlerConfig::operator==(const NConcurrency::TThroughputThrottlerConfig& other) -{ - return Limit == other.Limit && Period == other.Period; -} - -//////////////////////////////////////////////////////////////////////////////// - void TPrefetchingThrottlerConfig::Register(TRegistrar registrar) { registrar.Parameter("enable", &TThis::Enable) diff --git a/yt/yt/core/concurrency/config.h b/yt/yt/core/concurrency/config.h index 20639a7be2e..01fc98027b3 100644 --- a/yt/yt/core/concurrency/config.h +++ b/yt/yt/core/concurrency/config.h @@ -87,7 +87,7 @@ struct TThroughputThrottlerConfig static TThroughputThrottlerConfigPtr Create(std::optional<double> limit); - bool operator==(const TThroughputThrottlerConfig& other); + bool operator==(const TThroughputThrottlerConfig& other) const = default; REGISTER_YSON_STRUCT(TThroughputThrottlerConfig); |
