Skip to content

Commit 0a8592f

Browse files
authored
Merge pull request #149 from OneLiteFeatherNET/feat/otlp-oidc-patches
fix: blocks
2 parents 6b8f9c0 + 74e3d95 commit 0a8592f

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)