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-16 11:08:59 -04:00
1 parent 8e2ede596f
commit e8bb64a80f
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.")