Skip to content

Commit

Permalink
Fix reversed min/max for configured network threads.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed May 28, 2024
1 parent 7ca1521 commit 9c99325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/p2p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ using namespace std::placeholders;

p2p::p2p(const settings& settings, const logger& log) NOEXCEPT
: settings_(settings),
threadpool_(std::min(settings.threads, 1_u32)),
threadpool_(std::max(settings.threads, 1_u32)),
strand_(threadpool_.service().get_executor()),
hosts_(settings, log),
broadcaster_(strand_),
Expand Down

0 comments on commit 9c99325

Please sign in to comment.