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.
This commit is contained in:
Patrick Cloke 2021-01-05 10:53:15 -05:00 committed by GitHub
parent 31b1905e13
commit 37eaf9c272
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 14 deletions

View file

@ -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])