Skip to content

Commit 96b573c

Browse files
committed
Double client timeout
matrix.org got even slower, so 60s is not enough to log in or sync anymore
1 parent 62e04c0 commit 96b573c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matrix/raw_client.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defmodule M51.Matrix.RawClient do
2424

2525
def get(client, path, headers \\ [], options \\ []) do
2626
headers = [Authorization: "Bearer " <> client.access_token] ++ headers
27-
options = options |> Keyword.put_new(:timeout, 60000)
27+
options = options |> Keyword.put_new(:timeout, 120000)
2828

2929
url = client.base_url <> path
3030

lib/matrix_client/client.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ defmodule M51.MatrixClient.Client do
3838

3939
# timeout used for all requests sent to a homeserver.
4040
# It should be slightly larger than M51.Matrix.RawClient's timeout,
41-
@timeout 65000
41+
@timeout 125000
4242

4343
def start_link(opts) do
4444
{sup_pid, _extra_args} = opts

0 commit comments

Comments
 (0)