We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 571355e commit 9d7ad7bCopy full SHA for 9d7ad7b
twilight-lavalink/src/node.rs
@@ -694,18 +694,8 @@ impl Drop for Connection {
694
const TWILIGHT_CLIENT_NAME: &str = concat!("twilight-lavalink/", env!("CARGO_PKG_VERSION"));
695
696
fn connect_request(state: &NodeConfig) -> Result<ClientBuilder, NodeError> {
697
- let websocket = if cfg!(any(
698
- feature = "native-tls",
699
- feature = "rustls-native-roots",
700
- feature = "rustls-webpki-roots"
701
- )) {
702
- "wss"
703
- } else {
704
- "ws"
705
- };
706
-
707
let mut builder = ClientBuilder::new()
708
- .uri(&format!("{}://{}/v4/websocket", websocket, state.address))
+ .uri(&format!("ws://{}/v4/websocket", state.address))
709
.map_err(|source| NodeError {
710
kind: NodeErrorType::BuildingConnectionRequest,
711
source: Some(Box::new(source)),
0 commit comments