We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f46aa66 commit 2391d3eCopy full SHA for 2391d3e
crates/dips/src/ipfs.rs
@@ -27,12 +27,13 @@ impl<T: IpfsFetcher> IpfsFetcher for Arc<T> {
27
#[derivative(Debug)]
28
pub struct IpfsClient {
29
#[derivative(Debug = "ignore")]
30
- client: ipfs_api_backend_hyper::BackendWithGlobalOptions<IpfsClient>,
+ client: ipfs_api_backend_hyper::Backend,
31
}
32
33
impl IpfsClient {
34
pub fn new(url: &str) -> anyhow::Result<Self> {
35
let opts = GlobalOptions {
36
+ offline: None,
37
timeout: Some(Duration::from_secs(30)),
38
};
39
let backend = ipfs_api_backend_hyper::IpfsClient::from_str(url)?;
0 commit comments