forked from Proxmox/proxmox
cargo fmt
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
28e30719e8
commit
95f7232188
@ -166,7 +166,13 @@ impl ProcessLocker {
|
||||
|
||||
/// Get oldest shared lock timestamp
|
||||
pub fn oldest_shared_lock(locker: Arc<Mutex<Self>>) -> Option<i64> {
|
||||
locker.lock().unwrap().shared_guard_list.values().copied().min()
|
||||
locker
|
||||
.lock()
|
||||
.unwrap()
|
||||
.shared_guard_list
|
||||
.values()
|
||||
.copied()
|
||||
.min()
|
||||
}
|
||||
|
||||
/// Try to acquire a exclusive lock
|
||||
|
Loading…
Reference in New Issue
Block a user