From 1e754683d8fc09a11210132bc691cbbccb453def Mon Sep 17 00:00:00 2001 From: mfw78 Date: Fri, 19 Jan 2024 11:49:37 +0000 Subject: [PATCH] fix: missing metric label --- src/domain/checkForAndPlaceOrder.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/domain/checkForAndPlaceOrder.ts b/src/domain/checkForAndPlaceOrder.ts index f503248..527e5ca 100644 --- a/src/domain/checkForAndPlaceOrder.ts +++ b/src/domain/checkForAndPlaceOrder.ts @@ -272,7 +272,7 @@ export async function checkForAndPlaceOrder( // Start the post-processing timer const postProcessingTimer = pollingPostProcessingDurationSeconds - .labels(chainId.toString()) + .labels(chainId.toString(), blockNumber.toString()) .startTimer(); // Now that we have all the results, we can update the registry synchronously @@ -323,6 +323,9 @@ export async function checkForAndPlaceOrder( } } } + + // Update the registry + registry.ownerOrders.set(owner, conditionalOrders); } }