kopia lustrzana https://gitlab.com/jaywink/federation
Optimize handle_send by ensuring a payload is sent only once per endpoint.
rodzic
1ca67c987e
commit
8d8e10b7b3
|
@ -167,7 +167,7 @@ def handle_send(
|
|||
logger.debug('handle_send - length of recipients: %s', len(recipients))
|
||||
# Flatten to unique recipients
|
||||
# TODO supply a callable that empties "fid" in the case that public=True
|
||||
unique_recipients = list(unique_everseen(recipients))
|
||||
unique_recipients = list(unique_everseen(recipients, key=lambda val: val['endpoints']))
|
||||
logger.debug('handle_send - length of unique_recipients: %s', len(unique_recipients))
|
||||
logger.debug('handle_send / unique_recipients - %s', unique_recipients)
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue