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;