Skip to content

Commit

Permalink
fix: make new constructor for cluster explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Dec 14, 2024
1 parent 786b1dd commit 56694b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/dpp/cluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ class DPP_EXPORT cluster {
* All callbacks and events are placed into the thread pool. The bigger you make this pool (but generally no bigger than your number of cores), the more your bot will scale.
* @throw dpp::exception Thrown on windows, if WinSock fails to initialise, or on any other system if a dpp::request_queue fails to construct
*/
cluster(uint32_t pool_threads = std::thread::hardware_concurrency() / 2);
explicit cluster(uint32_t pool_threads = std::thread::hardware_concurrency() / 2);

/**
* @brief Constructor for creating a cluster. All but the token are optional.
Expand Down

0 comments on commit 56694b2

Please sign in to comment.