Skip to content

Commit

Permalink
fix review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
rnovikov committed Dec 10, 2024
1 parent 63d3c49 commit 88a1e2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions evm_loader/lib/src/rpc/validator_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ impl Deref for CloneRpcClient {
#[async_trait(?Send)]
impl Rpc for CloneRpcClient {
async fn get_last_deployed_slot(&self, _program_id: &Pubkey) -> ClientResult<Option<u64>> {
// Update event impossible during CloneRpcClient work. Returns always 0 for caching.
Ok(Some(0))
}
async fn get_account_slice(
Expand Down
4 changes: 2 additions & 2 deletions evm_loader/lib/src/types/programs_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ where
fn get(&self, key: &KeyAccountCache) -> Option<Value> {
self.table
.read()
.expect("acc_hash_get_instance poisoned")
.expect("lock on read error ")
.get(key)
.cloned()
}
fn add(&self, key: KeyAccountCache, value: Value) {
self.table
.write()
.expect("PANIC, no space ")
.expect("lock on write error ")
.insert(key, value);
}
}
Expand Down

0 comments on commit 88a1e2a

Please sign in to comment.