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 May 4, 2023
1 parent 6361490 commit 4a0d289
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 4a0d289

Please sign in to comment.