Skip to content

Commit 2bc6599

Browse files
committed
fix websocket client endpoint
1 parent 03b59ee commit 2bc6599

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ async fn main() -> std::io::Result<()> {
166166
let client = Box::leak(Box::new(Arc::clone(state.client.borrow())));
167167
websocket::start_ws_server(
168168
format!("{}:1337", &config.host).as_str(),
169-
drift_sdk::utils::http_to_ws(config.rpc_host.as_str()).expect("ws endpoint"),
169+
config.rpc_host.replace("http", "ws"),
170170
state.wallet.clone(),
171171
client.program_data(),
172172
)

0 commit comments

Comments
 (0)