CalebEverett / arloader

Rust command line application and client for uploading files to Arweave.
Apache License 2.0
83 stars 23 forks source link

Error doesn't implement Send #14

Closed ozgrakkurt closed 2 years ago

ozgrakkurt commented 2 years ago

this makes it very hard to use the Arweave since the errors it returns are !Send and that makes the Futures themselves !Send which makes running them in tokio not possible without LocalSet

CalebEverett commented 2 years ago

Can you give me an example of where this happens and the error message so I can try to track down and fix?

ozgrakkurt commented 2 years ago

there is no specific message just the future that calling Arweave::get_price_terms produces doesn't implement Send so we can't tokio::spawn it. image

This is because the Error type doesn't implement Send

CalebEverett commented 2 years ago

Ok, I'll see if I can implement it - thanks.

CalebEverett commented 2 years ago

Let me know if this works. Master has the update and 1.57 should be on crates.io in 15 minutes or so.

ozgrakkurt commented 2 years ago

thank you it works!