dendrite/syncapi/sync
Kegan Dougal 870f990a8f bugfix: fix race condition when updating presence via /sync
Previously when presence is updated via /sync, we would send the presence update
asyncly via NATS. This created a race condition:
 - If the presence update is processed quickly, the /sync which triggered the presence
   update would see an online presence.
 - If the presence update was processed slowly, the /sync which triggered the presence
   update would see an offline presence.

This is the root cause behind the flakey sytest: 'User sees their own presence in a sync'.

The fix is to ensure we update the database/advance the stream position synchronously
for local users.
2022-05-17 15:24:31 +01:00
..
request.go Use a value that is Go 1.16-friendly 2022-04-26 17:05:31 +01:00
requestpool.go bugfix: fix race condition when updating presence via /sync 2022-05-17 15:24:31 +01:00
requestpool_test.go Limit presence in /sync responses (#2394) 2022-04-28 15:12:40 +01:00