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

Commit 9b10133

Browse files
committed
Rename some variables
1 parent d2fd7f7 commit 9b10133

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

synapse/handlers/federation_event.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,12 +1533,14 @@ async def _check_event_auth(
15331533
StateFilter.from_types(event_types)
15341534
)
15351535

1536-
auth_events_ids = self._event_auth_handler.compute_auth_events(
1536+
calculated_auth_event_ids = self._event_auth_handler.compute_auth_events(
15371537
event, prev_state_ids, for_verification=True
15381538
)
1539-
auth_events_x = await self._store.get_events(auth_events_ids)
1539+
calculated_auth_events = await self._store.get_events_as_list(
1540+
calculated_auth_event_ids
1541+
)
15401542
calculated_auth_event_map = {
1541-
(e.type, e.state_key): e for e in auth_events_x.values()
1543+
(e.type, e.state_key): e for e in calculated_auth_events
15421544
}
15431545

15441546
try:

0 commit comments

Comments
 (0)