Jon Chambers
|
a052e2ee8f
|
Refactor: collapse state into semaphores/atomic booleans.
|
2020-09-11 13:12:17 -04:00 |
|
Jon Chambers
|
6f9ff3be37
|
Avoid querying the database if we think all new messages are in the cache.
|
2020-09-11 13:12:17 -04:00 |
|
Jon Chambers
|
f766c57743
|
Query for more stored messages if an update happens while we're already processing a batch.
|
2020-09-11 13:12:17 -04:00 |
|
Jon Chambers
|
8f53152c3e
|
Only send the "queue cleared" message once per websocket session.
|
2020-09-11 13:12:17 -04:00 |
|
Jon Chambers
|
7bbc88d716
|
Let processStoredMessages handle requery logic.
|
2020-09-11 13:12:17 -04:00 |
|
Jon Chambers
|
68256d2343
|
Only allow one thread to process stored messages at a time.
|
2020-09-11 13:12:17 -04:00 |
|