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 }