diff options
| author | Linus Färnstrand <faern@faern.net> | 2023-02-08 11:58:39 +0100 |
|---|---|---|
| committer | Linus Färnstrand <faern@faern.net> | 2023-02-08 13:41:17 +0100 |
| commit | c47cc4d674122aa4da8ed3cd5d8ee4ec7de73090 (patch) | |
| tree | 902d849f61d400122a7943caca901cee30e1fd87 /mullvad-api/src | |
| parent | 48065a6f962039dc8b3926a1f54ed147a0411c79 (diff) | |
| download | mullvadvpn-c47cc4d674122aa4da8ed3cd5d8ee4ec7de73090.tar.xz mullvadvpn-c47cc4d674122aa4da8ed3cd5d8ee4ec7de73090.zip | |
Make async fns without awaits into regular fns
Diffstat (limited to 'mullvad-api/src')
| -rw-r--r-- | mullvad-api/src/rest.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mullvad-api/src/rest.rs b/mullvad-api/src/rest.rs index a1a6b28b0a..6d10f389de 100644 --- a/mullvad-api/src/rest.rs +++ b/mullvad-api/src/rest.rs @@ -274,7 +274,7 @@ impl RequestServiceHandle { } /// Forcibly update the connection mode. - pub async fn next_api_endpoint(&self) -> Result<()> { + pub fn next_api_endpoint(&self) -> Result<()> { self.tx .unbounded_send(RequestCommand::NextApiConfig) .map_err(|_| Error::SendError) |
