Closed giachello closed 2 years ago
There must be a way to fix it, using some form of async sleep call or a different structure. the calls are required -- the code is flaky without some wait times. will look into it in the weekend.
time.sleep
is called in 5 places in gateway.py
I removed the problem in two places in gateway.py by changing def ml_connect
to async def
and await gateway.mlconnect()
in a few places. Delays are handled by asyncio.sleep()
.
I have not tested that everything works though.
Remaining calls of time.sleep()
remain...
v2022.5.1 fixes all this. Thank you @astrandb !!!
PR #17 fixes the deprecations. I have looked at the use of timer.sleep() but I have not found any simple fix yet. There are no performance problems in my systems but it would of course nice to get rid of the warnings. So not maximum priority to fix, but I can continue to try. Or have you @giachello any ideas?