From 3f95b142500b1eb34405bc1452a31499dca39692 Mon Sep 17 00:00:00 2001 From: guibescos <59208140+guibescos@users.noreply.github.com> Date: Mon, 2 Dec 2024 17:01:43 +0000 Subject: [PATCH] fix: typo (#269) * fix: typo * remove test --- .../src/auction/repository/remove_in_memory_auction_lock.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/auction-server/src/auction/repository/remove_in_memory_auction_lock.rs b/auction-server/src/auction/repository/remove_in_memory_auction_lock.rs index 9c17aaea..d755528e 100644 --- a/auction-server/src/auction/repository/remove_in_memory_auction_lock.rs +++ b/auction-server/src/auction/repository/remove_in_memory_auction_lock.rs @@ -9,12 +9,12 @@ use { impl Repository { pub async fn remove_in_memory_auction_lock(&self, key: &entities::PermissionKey) { - let mut mutex_gaurd = self.in_memory_store.auction_lock.lock().await; - let auction_lock = mutex_gaurd.get(key); + let mut mutex_guard = self.in_memory_store.auction_lock.lock().await; + let auction_lock = mutex_guard.get(key); if let Some(auction_lock) = auction_lock { // Whenever there is no thread borrowing a lock for this key, we can remove it from the locks HashMap. if Arc::strong_count(auction_lock) == 1 { - mutex_gaurd.remove(key); + mutex_guard.remove(key); } } }