瀏覽代碼

Remove invalid await in replication code (#400)

Andrew Morgan 2 年之前
父節點
當前提交
7857b06c70
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      changelog.d/400.bugfix
  2. 1 1
      sydent/replication/pusher.py

+ 1 - 0
changelog.d/400.bugfix

@@ -0,0 +1 @@
+Fix an issue which could cause new local associations to be replicated multiple times to peers.

+ 1 - 1
sydent/replication/pusher.py

@@ -112,7 +112,7 @@ class Pusher:
             )
             result = await p.pushUpdates(assocs)
 
-            await self.peerStore.setLastSentVersionAndPokeSucceeded(
+            self.peerStore.setLastSentVersionAndPokeSucceeded(
                 p.servername, latest_assoc_id, time_msec()
             )