File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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.
104104pub 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 ,
You can’t perform that action at this time.
0 commit comments