Skip to content

Commit

Permalink
Make PerConnectionState immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Aug 22, 2024
1 parent 08483cf commit f108073
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/types/handlers/sliding_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ class HaveSentRoomFlag(Enum):
LIVE = "live"


T = TypeVar("T")
T = TypeVar("T", str, RoomStreamToken, MultiWriterStreamToken)


@attr.s(auto_attribs=True, slots=True, frozen=True)
Expand Down Expand Up @@ -797,7 +797,7 @@ def record_unsent_rooms(self, room_ids: StrCollection, from_token: T) -> None:
self._statuses[room_id] = HaveSentRoom.previously(from_token)


@attr.s(auto_attribs=True)
@attr.s(auto_attribs=True, frozen=True)
class PerConnectionState:
"""The per-connection state. A snapshot of what we've sent down the
connection before.
Expand Down

0 comments on commit f108073

Please sign in to comment.