(&self, f: F)
| 72 | } |
| 73 | |
| 74 | pub fn with<F, T>(&self, f: F) -> T |
| 75 | where |
| 76 | F: FnOnce(&mut LruCache<K, V>) -> T, |
| 77 | { |
| 78 | let mut guard = self.cache.lock().expect("cache poisoned"); |
| 79 | f(&mut guard) |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | /// Facilitate Ethereum address <-> Actor ID lookups. |
no outgoing calls
no test coverage detected