Increase sleep time in bybit_md_provider keep-alive loop

This thread's only job is to stay alive until "stop" is called. It
doesn't need to be particularly fast/responsive. Longer sleep intervals
reduce contention with the "hot" thread that receives market data.
This commit is contained in:
John Colvin committed 2025-06-13 20:50:30 +00:00
1 parent 0328356758
commit 2cf62d8d9a
1 file changed
+1 -1
@@ -189,7 +189,7 @@ class BybitMdProvider(MdProvider):
logger.debug(f"Thread (start): Name={t.name}, Alive={t.is_alive()}, Daemon={t.daemon}, Target={t._target}")
while not self.stop_event.is_set():
time.sleep(0.05)
time.sleep(1)
except KeyboardInterrupt:
logger.info("KeyboardInterrupt received — shutting down.")