mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-13 19:20:36 +00:00
doc: why tokio mutex instead of std mutex
This commit is contained in:
@@ -288,6 +288,7 @@ pub async fn disk_usage_eviction_task_iteration_impl<U: Usage>(
|
||||
usage_pre: U,
|
||||
cancel: &CancellationToken,
|
||||
) -> anyhow::Result<IterationOutcome<U>> {
|
||||
// use tokio's mutex to get a Sync guard (instead of std::sync::Mutex)
|
||||
let _g = state
|
||||
.mutex
|
||||
.try_lock()
|
||||
|
||||
Reference in New Issue
Block a user