Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix small typo in comment (#6269)
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 authored Oct 30, 2019
1 parent 46c1291 commit 7955abe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/6269.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix incorrect comment regarding the functionality of an `if` statement.
2 changes: 1 addition & 1 deletion synapse/federation/federation_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ async def _handle_incoming_transaction(self, origin, transaction, request_time):

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
):
Expand Down

0 comments on commit 7955abe

Please sign in to comment.