From 3390866005f9af21e3ef946060d6613056a23a9b Mon Sep 17 00:00:00 2001 From: Caio Ramos Casimiro Date: Wed, 12 Jun 2024 13:12:22 +0100 Subject: [PATCH] [TMP] review(*) fix case identation on switches --- src/common/proxy_wasm/ngx_proxy_wasm_host.c | 26 ++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/common/proxy_wasm/ngx_proxy_wasm_host.c b/src/common/proxy_wasm/ngx_proxy_wasm_host.c index e4d8eda8b..7fdc7946d 100644 --- a/src/common/proxy_wasm/ngx_proxy_wasm_host.c +++ b/src/common/proxy_wasm/ngx_proxy_wasm_host.c @@ -1601,22 +1601,22 @@ ngx_proxy_wasm_hfuncs_define_metric(ngx_wavm_instance_t *instance, max_len = metrics->config.max_metric_name_length; switch(pw_type) { - case NGX_PROXY_WASM_METRIC_COUNTER: - type = NGX_WA_METRIC_COUNTER; - break; + case NGX_PROXY_WASM_METRIC_COUNTER: + type = NGX_WA_METRIC_COUNTER; + break; - case NGX_PROXY_WASM_METRIC_GAUGE: - type = NGX_WA_METRIC_GAUGE; - break; + case NGX_PROXY_WASM_METRIC_GAUGE: + type = NGX_WA_METRIC_GAUGE; + break; - case NGX_PROXY_WASM_METRIC_HISTOGRAM: - type = NGX_WA_METRIC_HISTOGRAM; - break; + case NGX_PROXY_WASM_METRIC_HISTOGRAM: + type = NGX_WA_METRIC_HISTOGRAM; + break; - default: - return ngx_proxy_wasm_result_trap(pwexec, "unknown metric type", - rets, - NGX_WAVM_ERROR); + default: + return ngx_proxy_wasm_result_trap(pwexec, "unknown metric type", + rets, + NGX_WAVM_ERROR); } filter_name = pwexec->filter->name;