Skip to content

Commit

Permalink
[TMP] review(*) fix case identation on switches
Browse files Browse the repository at this point in the history
  • Loading branch information
casimiro committed Jun 12, 2024
1 parent 87e91ed commit 3390866
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/common/proxy_wasm/ngx_proxy_wasm_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3390866

Please sign in to comment.