File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,6 @@ pub fn client() -> reqwest::Client {
9898 . user_agent ( USER_AGENT )
9999 . timeout ( Duration :: from_secs ( 60 ) )
100100 . connect_timeout ( Duration :: from_secs ( 30 ) )
101- . read_timeout ( Duration :: from_secs ( 30 ) )
102101 . build ( )
103102 . expect ( "failed to create HTTP client" )
104103}
Original file line number Diff line number Diff line change 44// SPDX-License-Identifier: AGPL-3.0-only
55// Please see LICENSE in the repository root for full details.
66
7- use std:: collections:: HashSet ;
7+ use std:: { collections:: HashSet , time :: Duration } ;
88
99use anyhow:: { Context , bail} ;
1010use error:: SynapseResponseExt ;
@@ -476,6 +476,8 @@ impl HomeserverConnection for SynapseConnection {
476476 let response = self
477477 . post ( & format ! ( "_synapse/admin/v1/deactivate/{mxid}" ) )
478478 . json ( & SynapseDeactivateUserRequest { erase } )
479+ // Deactivation can take a while, so we set a longer timeout
480+ . timeout ( Duration :: from_secs ( 60 * 5 ) )
479481 . send_traced ( )
480482 . await
481483 . context ( "Failed to deactivate user in Synapse" ) ?;
You can’t perform that action at this time.
0 commit comments