-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to recent Tokio version v1.0 #90
Comments
@martinomburajr Thanks for raising this. I've been meaning to update all dependencies to the latest versions for a while. PRs open, if you want to do it :) |
Thanks for the response, Im still getting learning the language and it may take sometime for me to get to grips with it all, I'll try it when Im ready. |
Also interested in this feature, also new to rust. I'm going to attempt this this week, no idea what level of pain I'm in for. |
Notes: However tests fail with:
This is the same error I was getting when attempting to use this lib. Stack trace indicates error is originating from hyper-tls. Inverting cargo tree to see where Tokio 2 is being pulled in results in:
As far as I can tell Surf is the only dependency that is blocking upgrade: I think this is a dead end until hyper-rs does next major. |
Sigh... cannot find a way to work with influxdb from rust, also relatively new to the language... Maybe I try export my metrics in prometheus style and scrape them using influxdb scrappers for now edit: changing my Cargo.toml to this edit2: ok I managed to get data into influx using this library, there was a problem with v2 -> v1 api mapping (missing dbrp mapping) and for some reason |
As an alternative I've been using
This is news to me, I'm working with the v1 api and haven't run across this. Agree that detecting the error in the json and returning a rust error would be an improvement. Would you be able to make an issue describing how to reproduce and what you think intended behavior should be? |
I ended up using this library - https://github.com/voipir/rust-influxc I will look into creating a separate issue describing this error swallowing, it probably has to with using backward compatible API of influxdb(I'm running influxdb 2.0.4 and been using 1.x API where |
If you want to use tokio 1.x and this crate at the same time you can use this fork https://github.com/altanozlu/influxdb-rust |
@altanozlu Your changes look great. Why don't you open a PR? |
My fork is currently tokio only but this repo supports a lot of backends. |
Just FYI, for people who want to use tokio 1.x with the currently-released influxdb client, you can include the Obviously the ideal is that this gets updated to use tokio 1.x, but there is a workaround until that happens. |
The issue here is that running this library when my application runs with a newer version of Tokio returns an error shown below
I am currently on v1 of the
tokio
library... Maybe it would be time to upgrade the dependencies if possible.The text was updated successfully, but these errors were encountered: