Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
randomairborne committed Aug 26, 2023
1 parent d5d677c commit a6543c2
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions twilight-gateway/src/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,17 @@ mod r#impl {
config: WebSocketConfig,
tls: &TlsContainer,
) -> Result<Connection, ReceiveMessageError> {
let (stream, _) =
tokio_tungstenite::connect_async_tls_with_config(url, Some(config), false, tls.connector())
.await
.map_err(|source| ReceiveMessageError {
kind: ReceiveMessageErrorType::Reconnect,
source: Some(Box::new(source)),
})?;
let (stream, _) = tokio_tungstenite::connect_async_tls_with_config(
url,
Some(config),
false,
tls.connector(),
)
.await
.map_err(|source| ReceiveMessageError {
kind: ReceiveMessageErrorType::Reconnect,
source: Some(Box::new(source)),
})?;

Ok(stream)
}
Expand Down

0 comments on commit a6543c2

Please sign in to comment.