mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-01-12 20:29:27 -05:00
Remove redundant for loop
This commit is contained in:
parent
74b7de83ec
commit
6eadbfbea0
@ -165,9 +165,6 @@ class FederationClient(FederationBase):
|
|||||||
for p in transaction_data["pdus"]
|
for p in transaction_data["pdus"]
|
||||||
]
|
]
|
||||||
|
|
||||||
for i, pdu in enumerate(pdus):
|
|
||||||
pdus[i] = yield self._check_sigs_and_hash(pdu)
|
|
||||||
|
|
||||||
# FIXME: We should handle signature failures more gracefully.
|
# FIXME: We should handle signature failures more gracefully.
|
||||||
pdus[:] = yield defer.gatherResults(
|
pdus[:] = yield defer.gatherResults(
|
||||||
[self._check_sigs_and_hash(pdu) for pdu in pdus],
|
[self._check_sigs_and_hash(pdu) for pdu in pdus],
|
||||||
|
Loading…
Reference in New Issue
Block a user