some delay for latency measurment from start
This commit is contained in:
parent
c4a4b53897
commit
fe954babc7
|
@ -146,6 +146,7 @@ class CloreClient:
|
||||||
|
|
||||||
self.clore_partner_initiazized = False
|
self.clore_partner_initiazized = False
|
||||||
self.partner_forwarding_ips = []
|
self.partner_forwarding_ips = []
|
||||||
|
self.start_time = utils.unix_timestamp()
|
||||||
|
|
||||||
async def service(self):
|
async def service(self):
|
||||||
global container_log_broken
|
global container_log_broken
|
||||||
|
@ -597,6 +598,7 @@ class CloreClient:
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
await monitoring.put("partner_service")
|
await monitoring.put("partner_service")
|
||||||
|
if self.start_time < utils.unix_timestamp() - 180:
|
||||||
forwarding_latency_measurment = await clore_partner.measure_forwarding_latency()
|
forwarding_latency_measurment = await clore_partner.measure_forwarding_latency()
|
||||||
if type(forwarding_latency_measurment) == list:
|
if type(forwarding_latency_measurment) == list:
|
||||||
await WebSocketClient.set_forwarding_latency_measurment(forwarding_latency_measurment)
|
await WebSocketClient.set_forwarding_latency_measurment(forwarding_latency_measurment)
|
||||||
|
|
Loading…
Reference in New Issue