diff options
Diffstat (limited to 'core/bindings.rs')
-rw-r--r-- | core/bindings.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/bindings.rs b/core/bindings.rs index 08ae1c655..fc86a1136 100644 --- a/core/bindings.rs +++ b/core/bindings.rs @@ -351,7 +351,7 @@ fn opcall_sync<'s>( let op = OpTable::route_op(op_id, state.op_state.clone(), payload); match op { Op::Sync(result) => { - state.op_state.borrow_mut().tracker.track_sync(op_id); + state.op_state.borrow().tracker.track_sync(op_id); rv.set(result.to_v8(scope).unwrap()); } Op::NotFound => { @@ -421,12 +421,12 @@ fn opcall_async<'s>( OpResult::Err(_) => rv.set(result.to_v8(scope).unwrap()), }, Op::Async(fut) => { - state.op_state.borrow_mut().tracker.track_async(op_id); + state.op_state.borrow().tracker.track_async(op_id); state.pending_ops.push(fut); state.have_unpolled_ops = true; } Op::AsyncUnref(fut) => { - state.op_state.borrow_mut().tracker.track_unref(op_id); + state.op_state.borrow().tracker.track_unref(op_id); state.pending_unref_ops.push(fut); state.have_unpolled_ops = true; } |