refactor
This commit is contained in:
parent
35e6993629
commit
7f044442bc
@ -186,7 +186,7 @@ auto packet_client::send(std::string_view method, packet &request,
|
||||
request.encode_top(PACKET_SERVICE_FLAGS);
|
||||
request.encode_top(std::string{project_get_version()});
|
||||
|
||||
static contexpr const std::uint8_t max_attempts{5U};
|
||||
static constexpr const std::uint8_t max_attempts{5U};
|
||||
for (std::uint8_t i = 1U;
|
||||
allow_connections_ && not success && (i <= max_attempts); i++) {
|
||||
auto current_client = get_client();
|
||||
|
Loading…
x
Reference in New Issue
Block a user