mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 12:06:55 +02:00
Use circuit breaker only for requests.
This commit is contained in:
parent
f0fcd222a1
commit
1b10d3413a
1 changed files with 1 additions and 1 deletions
|
@ -488,7 +488,7 @@ void EmbeddedNetworkController::request(
|
|||
|
||||
const uint64_t now = OSUtils::now();
|
||||
|
||||
{
|
||||
if (requestPacketId) {
|
||||
Mutex::Lock _l(_lastRequestTime_m);
|
||||
uint64_t &lrt = _lastRequestTime[std::pair<uint64_t,uint64_t>(identity.address().toInt(),nwid)];
|
||||
if ((now - lrt) <= ZT_NETCONF_MIN_REQUEST_PERIOD)
|
||||
|
|
Loading…
Add table
Reference in a new issue