Skip to content

Commit 2391d3e

Browse files
committed
fix: details
1 parent f46aa66 commit 2391d3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/dips/src/ipfs.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ impl<T: IpfsFetcher> IpfsFetcher for Arc<T> {
2727
#[derivative(Debug)]
2828
pub struct IpfsClient {
2929
#[derivative(Debug = "ignore")]
30-
client: ipfs_api_backend_hyper::BackendWithGlobalOptions<IpfsClient>,
30+
client: ipfs_api_backend_hyper::Backend,
3131
}
3232

3333
impl IpfsClient {
3434
pub fn new(url: &str) -> anyhow::Result<Self> {
3535
let opts = GlobalOptions {
36+
offline: None,
3637
timeout: Some(Duration::from_secs(30)),
3738
};
3839
let backend = ipfs_api_backend_hyper::IpfsClient::from_str(url)?;

0 commit comments

Comments
 (0)