diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2021-06-17 16:23:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-17 16:23:11 +0100 |
commit | fcf3c7032b96ab454120f86f3f070160c409d599 (patch) | |
tree | 0f22841971c633ca14753116ecc07d0fbf8713db /synapse/types.py | |
parent | Rip out the DNS lookup limiter (#10190) (diff) | |
download | synapse-fcf3c7032b96ab454120f86f3f070160c409d599.tar.xz |
Ensure that we do not cache empty sync responses after a timeout (#10158)
Fixes #8518 by telling the ResponseCache not to cache the /sync response if the next_batch param is the same as the since token.
Diffstat (limited to 'synapse/types.py')
-rw-r--r-- | synapse/types.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/types.py b/synapse/types.py index 0bdf32659c..8d2fa00f71 100644 --- a/synapse/types.py +++ b/synapse/types.py @@ -404,7 +404,7 @@ def map_username_to_mxid_localpart( return username.decode("ascii") -@attr.s(frozen=True, slots=True, cmp=False) +@attr.s(frozen=True, slots=True, order=False) class RoomStreamToken: """Tokens are positions between events. The token "s1" comes after event 1. |