ferristseng / rust-ipfs-api

IPFS HTTP client in Rust
Apache License 2.0
247 stars 68 forks source link

Is there any way to set the IpfsClient::cat timeout? #83

Closed zemelLeong closed 2 years ago

zemelLeong commented 3 years ago

I try to cat a not exists resource. The program runs for a long time. No sign of exit.

jmmaloney4 commented 2 years ago

You could try using tokio::time::timeout on the future returned from the ipfs api.

zemelLeong commented 2 years ago

Thanks. I've achieved it.