Skip to content

Commit db2d6c3

Browse files
authored
fix: windows build error (#2321)
* fix: windows build * refactor: cargo fmt refactor: cargo fmt
1 parent 8cb5983 commit db2d6c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/atuin-daemon/src/client.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ impl HistoryClient {
4545
.connect_with_connector(service_fn(move |_: Uri| {
4646
let url = format!("127.0.0.1:{}", port);
4747

48-
TcpStream::connect(url)
48+
async move {
49+
Ok::<_, std::io::Error>(TokioIo::new(TcpStream::connect(url.clone()).await?))
50+
}
4951
}))
5052
.await
5153
.map_err(|_| eyre!("failed to connect to local atuin daemon. Is it running?"))?;

0 commit comments

Comments
 (0)