Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No registry #3266

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix typo
  • Loading branch information
gabime committed Nov 23, 2024
commit 0a6ea2fec9a59720d56cce7992b7676e5c6539da
3 changes: 1 addition & 2 deletions bench/async_bench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#endif

#include "utils.h"
#include <atomic>
#include <iostream>
#include <memory>
#include <string>
Expand Down Expand Up @@ -111,7 +110,7 @@ int main(int argc, char *argv[]) {
auto logger = std::make_shared<async_logger>(
"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("");
Expand Down
3 changes: 1 addition & 2 deletions include/spdlog/async_overflow_policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
};

}


Loading