diff --git a/fdbserver/Ratekeeper.h b/fdbserver/Ratekeeper.h index 070b4b2d5b..8552eeb521 100644 --- a/fdbserver/Ratekeeper.h +++ b/fdbserver/Ratekeeper.h @@ -139,7 +139,9 @@ struct RatekeeperLimits { context(context), rkUpdateEventCacheHolder(makeReference("RkUpdate" + context)) {} }; -struct Ratekeeper { +class Ratekeeper { + friend class RatekeeperImpl; + // Differentiate from GrvProxyInfo in DatabaseContext.h struct GrvProxyInfo { int64_t totalTransactions; @@ -200,5 +202,6 @@ struct Ratekeeper { void tryAutoThrottleTag(StorageQueueInfo&, int64_t storageQueue, int64_t storageDurabilityLag); Future monitorThrottlingChanges(); +public: static Future run(RatekeeperInterface rkInterf, Reference const> dbInfo); };