From 5a8a989b7815023f33a1e3183a55cc8999af5d98 Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Sun, 10 Oct 2021 17:20:30 +0200 Subject: refactor(metrics): move to core (#12386) Avoids overhead of wrapping ops (and allocs when inspecting async-op futures) --- core/modules.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/modules.rs') diff --git a/core/modules.rs b/core/modules.rs index 18399b9b4..2af09057f 100644 --- a/core/modules.rs +++ b/core/modules.rs @@ -1008,7 +1008,7 @@ mod tests { dispatch_count_.fetch_add(1, Ordering::Relaxed); let (control, _): (u8, ()) = payload.deserialize().unwrap(); assert_eq!(control, 42); - let resp = (0, serialize_op_result(Ok(43), state)); + let resp = (0, 1, serialize_op_result(Ok(43), state)); Op::Async(Box::pin(futures::future::ready(resp))) }; -- cgit v1.2.3