MitchellHarrison / stream-environment

Python. Postgres. Docker. | Microservices in pursuit of a better, more interactive live stream. https://twitch.tv/mitchsworkshop
https://twitch.tv/mitchsworkshop
MIT License
20 stars 12 forks source link

Remove sleep before every outgoing twitch message #16

Closed MitchellHarrison closed 2 years ago

MitchellHarrison commented 2 years ago

This sleep should be moved outside of the while True: loop, since it only needs to wait once for the writer object to be created. As it stands, there is a performance hit for no reason.