fix remote err && lock err

Signed-off-by: junxiang Mu <1948535941@qq.com>
This commit is contained in:
junxiang Mu
2024-12-30 11:38:36 +08:00
parent f52882ede6
commit c749cda90d
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -50,8 +50,8 @@ impl DRWMutex {
Self {
owner,
names,
write_locks: Vec::with_capacity(lockers.len()),
read_locks: Vec::with_capacity(lockers.len()),
write_locks: vec![String::new(); lockers.len()],
read_locks: vec![String::new(); lockers.len()],
cancel_refresh_sender: None,
// rng: rand::thread_rng(),
lockers,