Skip to content

Commit

Permalink
proxy server: move time_point using statement before use
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien Béraud committed Nov 6, 2024
1 parent 7cf43f5 commit 3c62026
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/opendht/dht_proxy_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ class OPENDHT_PUBLIC DhtProxyServer

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};
Expand Down Expand Up @@ -409,9 +412,6 @@ class OPENDHT_PUBLIC DhtProxyServer
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_;
Expand Down

0 comments on commit 3c62026

Please sign in to comment.