Fix seen messages bug
This commit is contained in:
parent
547e7b3546
commit
60fe42bf60
|
@ -87,9 +87,10 @@ class Pubsub():
|
||||||
if rpc_incoming.publish:
|
if rpc_incoming.publish:
|
||||||
# deal with RPC.publish
|
# deal with RPC.publish
|
||||||
for message in rpc_incoming.publish:
|
for message in rpc_incoming.publish:
|
||||||
if message.seqno not in self.seen_messages:
|
id_in_seen_msgs = (message.seqno, message.from_id)
|
||||||
|
if id_in_seen_msgs not in self.seen_messages:
|
||||||
should_publish = True
|
should_publish = True
|
||||||
self.seen_messages.append((message.seqno, message.from_id))
|
self.seen_messages.append(id_in_seen_msgs)
|
||||||
await self.handle_talk(message)
|
await self.handle_talk(message)
|
||||||
|
|
||||||
if rpc_incoming.subscriptions:
|
if rpc_incoming.subscriptions:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user