Skip to content

Commit f973252

Browse files
author
dgolear
committed
YTORM-1384: Add overload controller to object service
commit_hash:d2821558020bab51a04d0c07ac3c06cec5c4911e
1 parent b9da249 commit f973252

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

yt/yt/core/rpc/overload_controller.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,11 @@ class TOverloadController
375375
Periodic_->Start();
376376
}
377377

378+
TFuture<void> Stop() override
379+
{
380+
return Periodic_->Stop();
381+
}
382+
378383
void TrackInvoker(
379384
TStringBuf name,
380385
const IInvokerPtr& invoker) override

yt/yt/core/rpc/overload_controller.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ struct IOverloadController
4040
DECLARE_INTERFACE_SIGNAL(void(), LoadAdjusted);
4141

4242
virtual void Start() = 0;
43+
virtual TFuture<void> Stop() = 0;
4344
virtual void Reconfigure(TOverloadControllerConfigPtr config) = 0;
4445

4546
virtual void TrackInvoker(

0 commit comments

Comments
 (0)