From 3c62026b5c0d48787a726eb9efb846977ed3eced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <> Date: Tue, 5 Nov 2024 20:20:45 -0500 Subject: [PATCH] proxy server: move time_point using statement before use --- include/opendht/dht_proxy_server.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/opendht/dht_proxy_server.h b/include/opendht/dht_proxy_server.h index e2ebc137..1a82efa8 100644 --- a/include/opendht/dht_proxy_server.h +++ b/include/opendht/dht_proxy_server.h @@ -98,6 +98,9 @@ public: asio::io_context& io_context() const; + using clock = std::chrono::steady_clock; + using time_point = clock::time_point; + struct PushStats { uint64_t highPriorityCount {0}; uint64_t normalPriorityCount {0}; @@ -409,9 +412,6 @@ private: template <typename Is> void loadState(Is& is, size_t size); - using clock = std::chrono::steady_clock; - using time_point = clock::time_point; - std::shared_ptr<asio::io_context> ioContext_; std::shared_ptr<DhtRunner> dht_; Json::StreamWriterBuilder jsonBuilder_; -- GitLab