| 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 | |
| 307 | BOOST_AUTO_TEST_CASE(logging_log_rate_limiter) |
no test coverage detected