From 0a6ea2fec9a59720d56cce7992b7676e5c6539da Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 23 Nov 2024 17:33:04 +0200 Subject: [PATCH] fix typo --- bench/async_bench.cpp | 3 +-- include/spdlog/async_overflow_policy.h | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bench/async_bench.cpp b/bench/async_bench.cpp index d1305607..b99b1ad2 100644 --- a/bench/async_bench.cpp +++ b/bench/async_bench.cpp @@ -19,7 +19,6 @@ #endif #include "utils.h" -#include #include #include #include @@ -111,7 +110,7 @@ int main(int argc, char *argv[]) { auto logger = std::make_shared( "async_logger", std::move(file_sink), std::move(tp), async_overflow_policy::block); bench_mt(howmany, std::move(logger), threads); - // verify_file(filename, howmany); + verify_file(filename, howmany); } spdlog::info(""); diff --git a/include/spdlog/async_overflow_policy.h b/include/spdlog/async_overflow_policy.h index 124f9e5e..4690594a 100644 --- a/include/spdlog/async_overflow_policy.h +++ b/include/spdlog/async_overflow_policy.h @@ -4,11 +4,10 @@ namespace spdlog { // Async overflow policy - block by default. enum class async_overflow_policy { block, // Block until message can be enqueued - overrun_oldest, // Discard oldest message in the queue if full when trying to + overrun_oldest, // Discard the oldest message in the queue if full when trying to // add new item. discard_new // Discard new message if the queue is full when trying to add new item. }; - }