Skip to content

Commit

Permalink
fix: await future
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyg committed Sep 5, 2024
1 parent 91c4732 commit 360016a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/admin_websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl AdminWebsocket {
/// As string `"localhost:30000"`
/// As tuple `([127.0.0.1], 30000)`
pub async fn connect(socket_addr: impl ToSocketAddrs) -> Result<Self> {
Self::connect_with_config(socket_addr, Arc::new(WebsocketConfig::CLIENT_DEFAULT))
Self::connect_with_config(socket_addr, Arc::new(WebsocketConfig::CLIENT_DEFAULT)).await
}

/// Connect to a Conductor API AdminWebsocket with a custom WebsocketConfig.
Expand Down

0 comments on commit 360016a

Please sign in to comment.