Hello! I am attempting to use qdrant/rust-client from a tonic-based grpc service's async_trait implementation e.g.:
```
pub struct MyServerStruct {
qdrant_client: qdrant_client::client::QdrantClient
}
#[async_trait]
impl thing_api_server::ThingApi for MyServerStruct {
async fn list_things(
&self,
_request: Request,
) -> Result, Status> {
// ...
let collections_response = self.qdrant_client.list_collections().await; // <----
// ...
return Ok(Response::new(ListThingsResponse::default()));
}
}
```
But I get a compile error hinting that something in the channel_pool is not `Send`
```
error: future cannot be sent between threads safely
--> src/service.rs:55:60
|
55 | ) -> Result, Status> {
| ____________________________________________________________^
56 | |
57 | | let collections_response = self.qdrant_client.list_collections().await;
58 | |
59 | |
60 | | return Ok(Response::new(ListThingsResponse::default()));
61 | | }
| |_____^ future created by async block is not `Send`
```
Should I expect the qdrant rust-client to work for this case, or should I just use the raw tonic-generated clients instead?