Skip to content

Commit 22834d5

Browse files
authored
Merge pull request #1205 from AntelopeIO/fix-thread-prometheus-main
[1.1.2 -> main] P2P, Prometheus: fix threading issue
2 parents 32b66ca + 506ae7f commit 22834d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/net_plugin/net_plugin.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ namespace eosio {
921921
std::string remote_endpoint_ip GUARDED_BY(conn_mtx);
922922
boost::asio::ip::address_v6::bytes_type remote_endpoint_ip_array GUARDED_BY(conn_mtx);
923923

924-
std::chrono::nanoseconds connection_start_time{0};
924+
std::atomic<std::chrono::nanoseconds> connection_start_time;
925925

926926
// block nack support
927927
static constexpr uint16_t consecutive_block_nacks_threshold{2}; // stop sending blocks when reached

0 commit comments

Comments
 (0)