ferristseng / rust-ipfs-api

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

Thread-safe IpfsClient. #53

Closed ruseinov closed 4 years ago

ruseinov commented 4 years ago

Currently impossible to pass as "web::Data" in actix for reusability.

And also not possible to use in any async function either.

The problem is that the IpfsClient is using std::rc::Rc, I'm wondering why not Arc.

ruseinov commented 4 years ago

Case closed, looks like using hyper should resolve this issue.