From 4bb9049c34a230e24bbb1216989e6a9c4b8409dd Mon Sep 17 00:00:00 2001 From: Nikolaos Dymitriadis Date: Tue, 18 Feb 2025 11:30:20 +0100 Subject: [PATCH] fix Signed-off-by: Nikolaos Dymitriadis --- .../db-sync-follower/src/stake_distribution/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolkit/mainchain-follower/db-sync-follower/src/stake_distribution/mod.rs b/toolkit/mainchain-follower/db-sync-follower/src/stake_distribution/mod.rs index 28eed72fa..3696d7ccd 100644 --- a/toolkit/mainchain-follower/db-sync-follower/src/stake_distribution/mod.rs +++ b/toolkit/mainchain-follower/db-sync-follower/src/stake_distribution/mod.rs @@ -124,7 +124,7 @@ impl Cache { pool_hash: &MainchainKeyHash, ) -> Option { if let Ok(mut cache) = self.distribution_per_pool_cache.lock() { - cache.get(&(epoch, pool_hash.clone())).map(|e| e.clone()) + cache.get(&(epoch, *pool_hash)).map(|e| e.clone()) } else { None }