Skip to content

Commit

Permalink
Update metering data on return
Browse files Browse the repository at this point in the history
  • Loading branch information
losfair committed May 16, 2019
1 parent 14fcd78 commit b830f10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/middleware-common/src/metering.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ impl FunctionMiddleware for Metering {
| Operator::BrTable { .. }
| Operator::BrIf { .. }
| Operator::Call { .. }
| Operator::CallIndirect { .. } => {
| Operator::CallIndirect { .. }
| Operator::Return => {
sink.push(Event::Internal(InternalEvent::GetInternal(0)));
sink.push(Event::WasmOwned(Operator::I64Const {
value: self.current_block as i64,
Expand Down

0 comments on commit b830f10

Please sign in to comment.