suharev7 / clickhouse-rs

Asynchronous ClickHouse client library for Rust programming language.
MIT License
324 stars 121 forks source link

GetHandle` is not a future #157

Open ArunGust opened 3 years ago

ArunGust commented 3 years ago

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 = "*"

suharev7 commented 3 years ago

Try to specify the version explicitly.

clickhouse-rs = "1.0.0-alpha.5"
ArunGust commented 3 years ago

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,
monadbobo commented 3 years ago

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 commented 3 years ago

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"

songroom2016 commented 2 years ago

i get same error