fix: windows build error (#2321)

* fix: windows build

* refactor: cargo fmt

refactor: cargo fmt
This commit is contained in:
YummyOreo 2024-07-29 09:10:49 -05:00 committed by GitHub
parent 8cb5983a53
commit db2d6c3d83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,7 +45,9 @@ impl HistoryClient {
.connect_with_connector(service_fn(move |_: Uri| {
let url = format!("127.0.0.1:{}", port);
TcpStream::connect(url)
async move {
Ok::<_, std::io::Error>(TokioIo::new(TcpStream::connect(url.clone()).await?))
}
}))
.await
.map_err(|_| eyre!("failed to connect to local atuin daemon. Is it running?"))?;