diff --git a/runtime/src/status_cache.rs b/runtime/src/status_cache.rs index 34f335ad75054b..30cd82d0cf34d6 100644 --- a/runtime/src/status_cache.rs +++ b/runtime/src/status_cache.rs @@ -158,7 +158,7 @@ impl StatusCache { /// to search all blockhashes. pub fn get_status_any_blockhash>( &self, - key: &K, + key: K, ancestors: &Ancestors, ) -> Option<(Slot, T)> { let mut keys = vec![]; @@ -167,7 +167,7 @@ impl StatusCache { for blockhash in keys.iter() { trace!("get_status_any_blockhash: trying {}", blockhash); - let status = self.get_status(key, blockhash, ancestors); + let status = self.get_status(&key, blockhash, ancestors); if status.is_some() { return status; } @@ -190,7 +190,7 @@ impl StatusCache { pub fn insert>( &mut self, transaction_blockhash: &Hash, - key: &K, + key: K, slot: Slot, res: T, ) {