maidsafe / self_encryption

file self encryptor
Other
118 stars 70 forks source link

fix: mark Boxed Future as Send #328

Closed b-zee closed 3 years ago

b-zee commented 3 years ago

The decrypt_chunk function is a function used by many higher level functions and crates. Without specifying the Send constraint, all async functions relying on this function will be non-Send.

This shouldn't be dangerous, as the Boxed Future is actually Send-able as witnessed by the fact the compiler does not complain.

Should fix: https://github.com/maidsafe/safe_network/issues/62 https://github.com/maidsafe/sn_client/issues/1555

joshuef commented 3 years ago

ah nice one @b-zee !