Skip to content

Commit cac0079

Browse files
authored
Merge pull request #1204 from AntelopeIO/fix-thread-prometheus
[1.1.2] P2P, Prometheus: fix threading issue
2 parents c4932c2 + 0c00238 commit cac0079

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
@@ -920,7 +920,7 @@ namespace eosio {
920920
std::string remote_endpoint_ip GUARDED_BY(conn_mtx);
921921
boost::asio::ip::address_v6::bytes_type remote_endpoint_ip_array GUARDED_BY(conn_mtx);
922922

923-
std::chrono::nanoseconds connection_start_time{0};
923+
std::atomic<std::chrono::nanoseconds> connection_start_time;
924924

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

0 commit comments

Comments
 (0)