Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 7b6d519

Browse files
committed
Make sure max stream ordering only increases
1 parent 52d1008 commit 7b6d519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

synapse/push/httppusher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def on_started(self):
8686
@defer.inlineCallbacks
8787
def on_new_notifications(self, min_stream_ordering, max_stream_ordering):
8888
with Measure(self.clock, "push.on_new_notifications"):
89-
self.max_stream_ordering = max_stream_ordering
89+
self.max_stream_ordering = max(max_stream_ordering, self.max_stream_ordering)
9090
yield self._process()
9191

9292
@defer.inlineCallbacks

0 commit comments

Comments
 (0)