From 8ea5e814c166fdf7064ebea15defb8589d9e7260 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Sat, 12 Apr 2025 16:36:56 +0100 Subject: [PATCH] linter fixes #nolog --- examples/client/async/latency_client.py | 1 - examples/client/sync/latency_client.py | 1 - 2 files changed, 2 deletions(-) diff --git a/examples/client/async/latency_client.py b/examples/client/async/latency_client.py index 8f39549..57be604 100644 --- a/examples/client/async/latency_client.py +++ b/examples/client/async/latency_client.py @@ -21,7 +21,6 @@ async def connect(): @sio.event async def pong_from_server(): - global start_timer latency = time.time() - start_timer print(f'latency is {latency * 1000:.2f} ms') await sio.sleep(1) diff --git a/examples/client/sync/latency_client.py b/examples/client/sync/latency_client.py index 240d214..94dcec9 100644 --- a/examples/client/sync/latency_client.py +++ b/examples/client/sync/latency_client.py @@ -19,7 +19,6 @@ def connect(): @sio.event def pong_from_server(): - global start_timer latency = time.time() - start_timer print(f'latency is {latency * 1000:.2f} ms') sio.sleep(1)