Skip to content

Commit

Permalink
Return instances in multithread test
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Apr 27, 2023
1 parent b1f18a8 commit ca94c32
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vm/examples/multi_threaded_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ pub fn main() {
let contract_result =
call_execute::<_, _, _, Empty>(&mut instance, &mock_env(), &info, msg).unwrap();
assert!(contract_result.into_result().is_ok());

let (cached, pinned, ..) = instance.recycle();
cache.return_instance(&checksum, cached, pinned).unwrap();
}));
}

Expand Down

0 comments on commit ca94c32

Please sign in to comment.