We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cb5983 commit db2d6c3Copy full SHA for db2d6c3
crates/atuin-daemon/src/client.rs
@@ -45,7 +45,9 @@ impl HistoryClient {
45
.connect_with_connector(service_fn(move |_: Uri| {
46
let url = format!("127.0.0.1:{}", port);
47
48
- TcpStream::connect(url)
+ async move {
49
+ Ok::<_, std::io::Error>(TokioIo::new(TcpStream::connect(url.clone()).await?))
50
+ }
51
}))
52
.await
53
.map_err(|_| eyre!("failed to connect to local atuin daemon. Is it running?"))?;
0 commit comments