clickhouse-rs icon indicating copy to clipboard operation
clickhouse-rs copied to clipboard

GetHandle` is not a future

Open ArunGust opened this issue 4 years ago • 5 comments

I got below error, any idea ?

let mut client = pool.get_handle().await?; | ^^^^^^^^^^^^^^^^^^^^^^^ GetHandle is not a future

My Cargo.toml is below clickhouse-rs = "*"

ArunGust avatar Aug 20 '21 15:08 ArunGust

Try to specify the version explicitly.

clickhouse-rs = "1.0.0-alpha.5"

suharev7 avatar Aug 23 '21 19:08 suharev7

No, didnt work . I still get same error

`GetHandle` is not a future
the trait `futures::Future` is not implemented for `GetHandle`rustcE0277
future.rs(99, 5): required by `futures::Future::poll`
clickhouse_rs::pool::Pool
pub fn new<O>(options: O) -> Self
where
    O: IntoOptions,

ArunGust avatar Sep 03 '21 06:09 ArunGust

No, didnt work . I still get same error

`GetHandle` is not a future
the trait `futures::Future` is not implemented for `GetHandle`rustcE0277
future.rs(99, 5): required by `futures::Future::poll`
clickhouse_rs::pool::Pool
pub fn new<O>(options: O) -> Self
where
    O: IntoOptions,

I have the same problem.

monadbobo avatar Sep 06 '21 09:09 monadbobo

No, didnt work . I still get same error

`GetHandle` is not a future
the trait `futures::Future` is not implemented for `GetHandle`rustcE0277
future.rs(99, 5): required by `futures::Future::poll`
clickhouse_rs::pool::Pool
pub fn new<O>(options: O) -> Self
where
    O: IntoOptions,

I modified it this way and everything was fine:

clickhouse-rs = "1.0.0-alpha.1"

monadbobo avatar Sep 06 '21 10:09 monadbobo

i get same error

songroom2016 avatar Feb 25 '22 08:02 songroom2016