Skip to content

Commit 64cbe4a

Browse files
committed
fix typo
1 parent e0e8924 commit 64cbe4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/query/users/src/jwt/jwk.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ pub struct JwkKeys {
9999
/// [`JwkKeyStore`] is a store for JWKS keys, it will cache the keys for a while and refresh the
100100
/// keys periodically. When the keys are refreshed, the older keys will still be kept for a while.
101101
///
102-
/// When the keys rorated in the client side first, the server will respond a 401 Authorization Failure
102+
/// When the keys rotated in the client side first, the server will respond a 401 Authorization Failure
103103
/// error, as the key is not found in the cache. We'll try to refresh the keys and try again.
104104
pub struct JwkKeyStore {
105105
url: String,
106106
recent_cached_maps: Arc<RwLock<VecDeque<HashMap<String, PubKey>>>>,
107-
max_recent_cached_maps: usize,
108107
last_refreshed_time: RwLock<Option<Instant>>,
109108
last_retry_time: RwLock<Option<Instant>>,
109+
max_recent_cached_maps: usize,
110110
refresh_interval: Duration,
111111
refresh_timeout: Duration,
112112
retry_interval: Duration,

0 commit comments

Comments
 (0)