Description
- Rust Version:
rustc 1.50.0-nightly (f76ecd066 2020-12-15) - Runtime version (e.g. Tokio):
tokio = { version = "0.3.5", features = ["full"] } - OS Version:
linux x86_64
I have an above tokio in my project, then I've added the influxdb crate in my Cargo.toml:
influxdb = { version = "0.3.0", features = ["derive"] }
In my async task started from main I've added an example code for influxdb call and I have this:
thread 'tokio-runtime-worker' panicked at 'there is no reactor running, must be called from the context of Tokio runtime', /root/.cargo/registry/src/jiasu.xzqcsaa.nyc.mn-1ecc6299db9ec823/tokio-0.2.24/src/io/driver/mod.rs:204:1
Is it a way to solve this besides making my project compatible for old tokio v2? Maybe you could update the tokio in your crate for 0.3 which is now a current version for the tokio crate?
I'd like to stick with my newest tokio but I also like to use the influxdb at the same time... is it possible?