0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-05 22:28:54 +01:00

Add edu.type as part of key. Remove debug logging

This commit is contained in:
Erik Johnston 2016-09-09 17:13:30 +01:00
parent 52b2318777
commit 327425764e

View file

@ -154,7 +154,9 @@ class TransactionQueue(object):
return return
if key: if key:
self.pending_edus_keyed_by_dest.setdefault(destination, {})[key] = edu self.pending_edus_keyed_by_dest.setdefault(
destination, {}
)[(edu.type, key)] = edu
else: else:
self.pending_edus_by_dest.setdefault(destination, []).append(edu) self.pending_edus_by_dest.setdefault(destination, []).append(edu)
@ -228,7 +230,6 @@ class TransactionQueue(object):
) )
pending_edus.extend(device_message_edus) pending_edus.extend(device_message_edus)
logger.info("Sending presence: %r", pending_presence)
if pending_presence: if pending_presence:
pending_edus.append( pending_edus.append(
Edu( Edu(