Fix small typo in comment (#6269)

code_spécifique_watcha
Andrew Morgan 5 years ago committed by GitHub
parent 46c12918ad
commit 7955abeaac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      changelog.d/6269.misc
  2. 2
      synapse/federation/federation_server.py

@ -0,0 +1 @@
Fix incorrect comment regarding the functionality of an `if` statement.

@ -145,7 +145,7 @@ class FederationServer(FederationBase):
logger.debug("[%s] Transaction is new", transaction.transaction_id)
# Reject if PDU count > 50 and EDU count > 100
# Reject if PDU count > 50 or EDU count > 100
if len(transaction.pdus) > 50 or (
hasattr(transaction, "edus") and len(transaction.edus) > 100
):

Loading…
Cancel
Save