From c95fb2315679b2f44b5775f359af3ed44e3cf620 Mon Sep 17 00:00:00 2001 From: Dominic Leutenegger Date: Mon, 4 Dec 2023 16:07:09 +0100 Subject: [PATCH] Use async auth client --- parrot/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parrot/src/lib.rs b/parrot/src/lib.rs index b75192c..c2db39e 100644 --- a/parrot/src/lib.rs +++ b/parrot/src/lib.rs @@ -4,7 +4,7 @@ use graphql::schema::report_payment_telemetry::{ }; use graphql::schema::{report_payment_telemetry, ReportPaymentTelemetry}; use graphql::{build_async_client, post, ToRfc3339}; -use honey_badger::Auth; +use honey_badger::asynchronous::Auth; use std::sync::Arc; use std::time::SystemTime; @@ -193,7 +193,7 @@ impl AnalyticsClient { }, }; - let token = self.auth.query_token()?; + let token = self.auth.query_token().await?; let client = build_async_client(Some(&token))?; post::(&client, &self.backend_url, variables).await?;