mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-18 11:24:19 -05:00
Pop rather than del from dict
This commit is contained in:
parent
8eec652de5
commit
64a2cef9bb
@ -1096,7 +1096,7 @@ class FederationHandler(BaseHandler):
|
||||
if prev_id != event.event_id:
|
||||
results[(event.type, event.state_key)] = prev_id
|
||||
else:
|
||||
del results[(event.type, event.state_key)]
|
||||
results.pop((event.type, event.state_key))
|
||||
|
||||
defer.returnValue(results.values())
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user