diff --git a/src/network/rate_limiting.cpp b/src/network/rate_limiting.cpp index 0055abb..59db1a5 100644 --- a/src/network/rate_limiting.cpp +++ b/src/network/rate_limiting.cpp @@ -1,6 +1,8 @@ #include #include #include +#include +#include #include #include #include @@ -262,7 +264,7 @@ namespace fc while (!operations_sorted_by_length.empty()) { uint32_t bytes_permitted_for_this_operation = bytes_remaining_to_allocate / operations_sorted_by_length.size(); - uint32_t bytes_allocated_for_this_operation = std::min(operations_sorted_by_length.back()->length, bytes_permitted_for_this_operation); + uint32_t bytes_allocated_for_this_operation = std::min(operations_sorted_by_length.back()->length, bytes_permitted_for_this_operation); operations_sorted_by_length.back()->permitted_length = bytes_allocated_for_this_operation; bytes_remaining_to_allocate -= bytes_allocated_for_this_operation; operations_sorted_by_length.pop_back();