diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-01-05 10:53:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-05 10:53:15 -0500 |
commit | 37eaf9c27271197320d4bedcceaf58d746935e53 (patch) | |
tree | 4758ca9622e660351b56f7c6e47bacbd39550faf /synapse/push/__init__.py | |
parent | Add type hints to the receipts and user directory handlers. (#8976) (diff) | |
download | synapse-37eaf9c27271197320d4bedcceaf58d746935e53.tar.xz |
Fix-up assertions about last stream token in push (#9020)
The last stream token is always known and we do not need to handle none.
Diffstat (limited to 'synapse/push/__init__.py')
-rw-r--r-- | synapse/push/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/push/__init__.py b/synapse/push/__init__.py index 9e7ac149a1..f4f7ec96f8 100644 --- a/synapse/push/__init__.py +++ b/synapse/push/__init__.py @@ -40,7 +40,7 @@ class PusherConfig: ts = attr.ib(type=int) lang = attr.ib(type=Optional[str]) data = attr.ib(type=Optional[JsonDict]) - last_stream_ordering = attr.ib(type=Optional[int]) + last_stream_ordering = attr.ib(type=int) last_success = attr.ib(type=Optional[int]) failing_since = attr.ib(type=Optional[int]) |