From d2f67cdb9fcdadb70b3a61cb07bffb47061d27a9 Mon Sep 17 00:00:00 2001 From: Ruediger Birkner Date: Mon, 7 Oct 2024 13:59:21 +0200 Subject: [PATCH 1/2] rename call_v3 to sync_call for logging --- src/metrics/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/metrics/mod.rs b/src/metrics/mod.rs index 7d9bc8a..05476ac 100644 --- a/src/metrics/mod.rs +++ b/src/metrics/mod.rs @@ -168,7 +168,7 @@ fn infer_request_type(path: &str) -> RequestType { match path { "/api/v2/canister/:principal/query" => RequestType::Api(RequestTypeApi::Query), "/api/v2/canister/:principal/call" => RequestType::Api(RequestTypeApi::Call), - "/api/v3/canister/:principal/call" => RequestType::Api(RequestTypeApi::CallV3), + "/api/v3/canister/:principal/call" => RequestType::Api(RequestTypeApi::SyncCall), "/api/v2/canister/:principal/read_state" => RequestType::Api(RequestTypeApi::ReadState), "/api/v2/subnet/:principal/read_state" => RequestType::Api(RequestTypeApi::ReadStateSubnet), "/api/v2/status" => RequestType::Api(RequestTypeApi::Status), From d021996ee1068d08b9d5d916502624f57f5a573c Mon Sep 17 00:00:00 2001 From: Ruediger Birkner Date: Mon, 7 Oct 2024 22:35:14 +0200 Subject: [PATCH 2/2] forgot to add file --- src/routing/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routing/mod.rs b/src/routing/mod.rs index 6d716c1..8297084 100644 --- a/src/routing/mod.rs +++ b/src/routing/mod.rs @@ -66,7 +66,7 @@ pub enum RequestTypeApi { Status, Query, Call, - CallV3, + SyncCall, ReadState, ReadStateSubnet, }