File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ impl TransportBuilder {
85
85
/// from which [Connection]s to Elasticsearch will be retrieved.
86
86
pub fn new < P > ( conn_pool : P ) -> Self
87
87
where
88
- P : ConnectionPool + Debug + Clone + ' static ,
88
+ P : ConnectionPool + Debug + Clone + Send + ' static ,
89
89
{
90
90
Self {
91
91
client_builder : reqwest:: ClientBuilder :: new ( ) ,
@@ -303,7 +303,7 @@ impl Default for Transport {
303
303
/// to get the next [Connection]. The simplest type of [ConnectionPool] is [SingleNodeConnectionPool],
304
304
/// which manages only a single connection, but other implementations may manage connections more
305
305
/// dynamically at runtime, based upon the response to API calls.
306
- pub trait ConnectionPool : Debug + dyn_clone:: DynClone {
306
+ pub trait ConnectionPool : Debug + dyn_clone:: DynClone + Sync + Send {
307
307
/// Gets a reference to the next [Connection]
308
308
fn next ( & self ) -> & Connection ;
309
309
}
You can’t perform that action at this time.
0 commit comments