Ran cargo fmt
This commit is contained in:
parent
ddbdb66dee
commit
f727ed284f
@ -133,7 +133,8 @@ impl Client {
|
|||||||
.with_no_client_auth();
|
.with_no_client_auth();
|
||||||
let connector = tokio_tungstenite::Connector::Rustls(Arc::new(config));
|
let connector = tokio_tungstenite::Connector::Rustls(Arc::new(config));
|
||||||
|
|
||||||
tokio_tungstenite::connect_async_tls_with_config(ws_url, None, false,Some(connector)).await?
|
tokio_tungstenite::connect_async_tls_with_config(ws_url, None, false, Some(connector))
|
||||||
|
.await?
|
||||||
} else {
|
} else {
|
||||||
// Perform an unsecure connection
|
// Perform an unsecure connection
|
||||||
tokio_tungstenite::connect_async(ws_url).await?
|
tokio_tungstenite::connect_async(ws_url).await?
|
||||||
|
Loading…
Reference in New Issue
Block a user