27 std::shared_ptr<Client> api_;
28 std::unordered_map<std::string, long> affinity_success;
29 static constexpr short MinutesTracked = 4;
30 std::array<unsigned, MinutesTracked * 60UL> sent_counts;
31 std::size_t total_sent = 0
UL;
32 std::time_t last_hist_update;
33 unsigned& current_bucket();
45 GatewayState(std::string_view prefix, std::shared_ptr<Client> api);
54 long extra_ms() {
return slowness; }