Skip to content

Commit

Permalink
Use async auth client in parrot (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
dleutenegger authored Dec 4, 2023
1 parent 2172768 commit 06307d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parrot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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::<ReportPaymentTelemetry>(&client, &self.backend_url, variables).await?;

Expand Down

0 comments on commit 06307d6

Please sign in to comment.