async_client: Propagate an error properly.
This commit is contained in:
parent
fbd65fde26
commit
0a74c943ba
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ impl AsyncClient {
|
|||
|
||||
headers.insert(reqwest::header::USER_AGENT, user_agent);
|
||||
|
||||
let http_client = http_client.default_headers(headers).build().unwrap();
|
||||
let http_client = http_client.default_headers(headers).build()?;
|
||||
|
||||
Ok(Self {
|
||||
homeserver,
|
||||
|
|
Loading…
Reference in a new issue