summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2019-10-30 11:16:19 +0000
committerGitHub <noreply@github.com>2019-10-30 11:16:19 +0000
commit7955abeaac54e97332bd42186299e648bb3ace6c (patch)
tree1ff3ee12a2d01d3efb39a051f61719a2712ef34b
parentFix typo in domain name in account_threepid_delegates config option (#6273) (diff)
downloadsynapse-7955abeaac54e97332bd42186299e648bb3ace6c.tar.xz
Fix small typo in comment (#6269)
-rw-r--r--changelog.d/6269.misc1
-rw-r--r--synapse/federation/federation_server.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/6269.misc b/changelog.d/6269.misc
new file mode 100644
index 0000000000..9fd333cc89
--- /dev/null
+++ b/changelog.d/6269.misc
@@ -0,0 +1 @@
+Fix incorrect comment regarding the functionality of an `if` statement.
\ No newline at end of file
diff --git a/synapse/federation/federation_server.py b/synapse/federation/federation_server.py
index 7c331753ad..d5a19764d2 100644
--- a/synapse/federation/federation_server.py
+++ b/synapse/federation/federation_server.py
@@ -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
         ):