Skip to content

Updated meilisearch_sdk::errors::Error is no longer Send #570

Closed
@c1wren

Description

@c1wren

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions