mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
Extend HTTP timeouts for getting the full key backup
This commit is contained in:
parent
d83b63aeaf
commit
553020bb28
1 changed files with 11 additions and 1 deletions
12
client.go
12
client.go
|
|
@ -2181,7 +2181,17 @@ func (cli *Client) GetKeyBackup(ctx context.Context, version id.KeyBackupVersion
|
|||
urlPath := cli.BuildURLWithQuery(ClientURLPath{"v3", "room_keys", "keys"}, map[string]string{
|
||||
"version": string(version),
|
||||
})
|
||||
_, err = cli.MakeRequest(ctx, http.MethodGet, urlPath, nil, &resp)
|
||||
_, err = cli.MakeFullRequest(ctx, FullRequest{
|
||||
Method: http.MethodGet,
|
||||
URL: urlPath,
|
||||
ResponseJSON: &resp,
|
||||
Client: &http.Client{
|
||||
Timeout: 180 * time.Second,
|
||||
Transport: &http.Transport{
|
||||
ResponseHeaderTimeout: 180 * time.Second,
|
||||
},
|
||||
},
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue