Skip to content

Commit

Permalink
Merge pull request #411 from evoskuil/master
Browse files Browse the repository at this point in the history
Fix reversed min/max for configured network threads.
  • Loading branch information
evoskuil authored May 28, 2024
2 parents 7ca1521 + 9c99325 commit 0484c5e
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 0484c5e

Please sign in to comment.