From 19711bf024139db1214cbbda8ad99334e6aca4c2 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 27 May 2021 17:30:30 -0400 Subject: [PATCH] Reconnect slow binance conns instead of error --- piker/brokers/binance.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/piker/brokers/binance.py b/piker/brokers/binance.py index 655800dc..a3731b9b 100644 --- a/piker/brokers/binance.py +++ b/piker/brokers/binance.py @@ -308,7 +308,8 @@ async def stream_messages(ws): timeouts += 1 if timeouts > 10: - raise trio.TooSlowError("binance feed seems down?") + log.error("binance feed seems down and slow af? rebooting...") + await ws._connect() continue