Skip to content

Commit

Permalink
Use async-lock (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb authored Sep 7, 2024
1 parent 1f313a7 commit 3d28717
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ sha256 = { version = "1", default-features = false }
rsa = { version = "0.9.6", features = ["sha2"] }
hex = { version = "0.4" }
log = { version = "0.4" }
async-rwlock = { version = "1" }
async-lock = { version = "3.4" }
getrandom = { version = "0.2.10", features = ["js"] }
wasm-bindgen = { version = "0.2.87", optional = true }
wasm-bindgen-futures = { version = "0.4.37", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion src/async_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::sync::Arc;
use std::time::{Duration, Instant};
use lazy_static::lazy_static;
use log::debug;
use async_rwlock::RwLock;
use async_lock::RwLock;
use crate::{DEFAULT_TIMEOUT, GOOGLE_OAUTH_V3_USER_INFO_API, GOOGLE_SA_CERTS_URL, GoogleAccessTokenPayload, GooglePayload, MyResult, utils};
use crate::certs::{Cert, Certs};
use crate::jwt_parser::JwtParser;
Expand Down

0 comments on commit 3d28717

Please sign in to comment.