MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetLimiter

Method GetLimiter

src/test/logging_tests.cpp:298–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296 promise.get_future().wait();
297 }
298 std::shared_ptr<BCLog::LogRateLimiter> GetLimiter(size_t max_bytes, std::chrono::seconds window)
299 {
300 auto sched_func = [this](auto func, auto w) {
301 scheduler.scheduleEvery(std::move(func), w);
302 };
303 return BCLog::LogRateLimiter::Create(sched_func, max_bytes, window);
304 }
305};
306
307BOOST_AUTO_TEST_CASE(logging_log_rate_limiter)

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80

Calls 1

scheduleEveryMethod · 0.80

Tested by

no test coverage detected