Skip to content

Commit d34e7a1

Browse files
committed
chore: don't retry bootstrap indefinitely
better behavior is to stop after a couple of attempts
1 parent 4804ec9 commit d34e7a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

freqtrade/rpc/telegram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ async def _startup_telegram(self) -> None:
360360
await asyncio.sleep(2)
361361
if self._app.updater:
362362
await self._app.updater.start_polling(
363-
bootstrap_retries=-1,
363+
bootstrap_retries=10,
364364
timeout=20,
365365
drop_pending_updates=True,
366366
)

0 commit comments

Comments
 (0)