diff options
author | Erik Johnston <erik@matrix.org> | 2020-01-16 13:31:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-16 13:31:22 +0000 |
commit | d386f2f339c839ff6ec8d656492dd635dc26f811 (patch) | |
tree | f127b8130fb9d778d863300e97c3ac55945e2e61 /synapse/federation/sender | |
parent | Add tips for the changelog to the pull request template (#6663) (diff) | |
download | synapse-d386f2f339c839ff6ec8d656492dd635dc26f811.tar.xz |
Add StateMap type alias (#6715)
Diffstat (limited to 'synapse/federation/sender')
-rw-r--r-- | synapse/federation/sender/per_destination_queue.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/federation/sender/per_destination_queue.py b/synapse/federation/sender/per_destination_queue.py index a5b36b1827..5012aaea35 100644 --- a/synapse/federation/sender/per_destination_queue.py +++ b/synapse/federation/sender/per_destination_queue.py @@ -31,6 +31,7 @@ from synapse.handlers.presence import format_user_presence_state from synapse.metrics import sent_transactions_counter from synapse.metrics.background_process_metrics import run_as_background_process from synapse.storage.presence import UserPresenceState +from synapse.types import StateMap from synapse.util.retryutils import NotRetryingDestination, get_retry_limiter # This is defined in the Matrix spec and enforced by the receiver. @@ -77,7 +78,7 @@ class PerDestinationQueue(object): # Pending EDUs by their "key". Keyed EDUs are EDUs that get clobbered # based on their key (e.g. typing events by room_id) # Map of (edu_type, key) -> Edu - self._pending_edus_keyed = {} # type: dict[tuple[str, str], Edu] + self._pending_edus_keyed = {} # type: StateMap[Edu] # Map of user_id -> UserPresenceState of pending presence to be sent to this # destination |