Skip to content

Commit 74e3d95

Browse files
committed
fix: blocks
1 parent 666acff commit 74e3d95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/oidc.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ impl OnJwtError for OIDCErrorHandler {
287287
warn!("No matching jwk for request found, refreshing jwks...");
288288

289289
let handle = Handle::current();
290-
handle.block_on(async { self.authority.refresh().await.ok() });
290+
let authority = self.authority.clone();
291+
handle.spawn(async move { authority.refresh().await.ok() });
291292

292293
Status::unauthenticated("unauthenticated").into_http()
293294
}

0 commit comments

Comments
 (0)