From 6decfb1935a95cea07bceeec5de26eb5a47472d5 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 1 Jun 2023 14:08:56 +0200 Subject: send events in a total order Move Connection code to wmrs.go. Introduce a RWMutex to synchronize access to the internal Wrms state. Tag each event when it is broadcast with the next event count. Senders will order the broadcasted events. This guarantees that no obsoltete events are ever delivered. --- TODO.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'TODO.md') diff --git a/TODO.md b/TODO.md index 49f4a23..3bb9f64 100644 --- a/TODO.md +++ b/TODO.md @@ -14,7 +14,7 @@ - [X] escape HTML - [X] support incremental search results - [X] distinguish different search queries -- [ ] do not apply obsolete events +- [X] do not apply obsolete events ## Web Backend -- cgit v1.2.3