Add tokio-compat-02 for influxdb client
The HTTP client the influxdb client uses is still on tokio 0.2.
This commit is contained in:
@ -153,9 +153,12 @@ async fn handle_publish(
|
||||
};
|
||||
query = query.add_tag(&tag.0, value);
|
||||
}
|
||||
|
||||
use tokio_compat_02::FutureExt;
|
||||
database
|
||||
.client
|
||||
.query(&query)
|
||||
.compat()
|
||||
.await
|
||||
.map_err(|err| format!("Failed to write to DB: {}", err))?;
|
||||
debug!("wrote to influx: {:?}", query);
|
||||
|
Reference in New Issue
Block a user