`MutexGuard` is held across an `await` point
error: this `MutexGuard` is held across an `await` point
--> src/worker/client/groupv2.rs:65:21
|
65 | let mut credential_cache = storage.credential_cache();
| ^^^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::await-holding-lock` implied by `-D warnings`
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
note: these are all the `await` points this lock is held through
--> src/worker/client/groupv2.rs:65:17
|
65 | / let mut credential_cache = storage.credential_cache();
66 | | let mut gm =
67 | | GroupsManager::new(authenticated_service, &mut *credential_cache, zk_params);
68 | | let credentials = gm.get_authorization_for_today(uuid, request.secret).await?;
... |
244 | | Ok::<_, anyhow::Error>(group)
245 | | }
| |_____________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_lock
New clippy lint that currently blocks CI.
Job #2484108661 failed for 8531866c: