Closed
Description
Description
I've been testing the changes using reqwest instead of isahc. Something changed in meilisearch_sdk::errors::Error because it is no longer Send.
Expected behavior
Previous code that used to work should work but it doesn't. I was using tokio::spawn to call functions that in turn use the meilisearch sdk in them.
Current behavior
I get the error: dyn Future<Output = Result<TaskInfo, meilisearch_sdk::errors::Error>>
cannot be sent between threads safely
I've created a minimal example to reproduce the issue:
fn is_send<T: Send>() -> bool {
true
}
is_send::<meilisearch_sdk::errors::Error>() <--- this will not compile because it isn't Send
Environment (please complete the following information):
- Meilisearch version: N/A
- meilisearch-rust version: commit revision cb32534
Metadata
Metadata
Assignees
Labels
No labels