adayoung / ada-bot

Discord bot for Achaea!
MIT License
8 stars 7 forks source link

utils.storage.OnReady should use a channeled listener instead of being a oneshot queue #23

Closed adayoung closed 7 years ago

adayoung commented 7 years ago

We use utils.storage.OnReady to queue up things to be launched which need the DB to be up and running. Usually the DB setup takes a while and everybody ends up queuing their things just in time, but if somebody is a slow poke and calls OnReady after the DB is up, it won't really work for them. CULT PONY#5848 wasn't wrong to say:

that doesn't look too bad

:grin: