Skip to content

Commit

Permalink
trace
Browse files Browse the repository at this point in the history
  • Loading branch information
mraszyk committed Oct 24, 2024
1 parent bc3058b commit eeff6f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rs/pocket_ic_server/src/state_api/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1435,7 +1435,9 @@ impl ApiState {
let new_state_label = pocket_ic.get_state_label();
// add result to graph, but grab instance lock first!
let instances = instances.blocking_read();
println!("waiting to grab graph: old={} op_id={}", old_state_label, op_id);
let mut graph_guard = graph.blocking_write();
println!("grabbed graph: old={} op_id={}", old_state_label, op_id);
let cached_computations =
graph_guard.entry(old_state_label.clone()).or_default();
cached_computations
Expand Down

0 comments on commit eeff6f7

Please sign in to comment.