mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Skip already processed messages
This commit is contained in:
parent
4019693363
commit
211381a9a8
1 changed files with 4 additions and 1 deletions
|
|
@ -257,6 +257,9 @@ class Session:
|
|||
|
||||
for i in messages:
|
||||
if i.seq_no % 2 != 0:
|
||||
if i.msg_id in self.pending_acks:
|
||||
continue
|
||||
else:
|
||||
self.pending_acks.add(i.msg_id)
|
||||
|
||||
# log.debug("{}".format(type(i.body)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue