Skip to content

Commit

Permalink
Adjust timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Nov 22, 2022
1 parent 15ae663 commit aa9b953
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion synapse/federation/federation_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ async def get_pdu(
destinations: Collection[str],
event_id: str,
room_version: RoomVersion,
timeout: Optional[int] = None,
timeout: Optional[int] = 15000,
) -> Optional[PulledPduInfo]:
"""Requests the PDU with given origin and ID from the remote home
servers.
Expand Down
2 changes: 1 addition & 1 deletion synapse/federation/transport/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async def get_room_state(
)

async def get_event(
self, destination: str, event_id: str, timeout: Optional[int] = None
self, destination: str, event_id: str, timeout: Optional[int] = 15000
) -> JsonDict:
"""Requests the pdu with give id and origin from the given server.
Expand Down

0 comments on commit aa9b953

Please sign in to comment.