Align the code
This commit is contained in:
parent
ddb9eaef7b
commit
fde5fbe73a
|
@ -172,11 +172,11 @@ trans(dec, gauge, Metric, Val) ->
|
||||||
|
|
||||||
hold(Type, Metric, Val) when Type =:= counter orelse Type =:= gauge ->
|
hold(Type, Metric, Val) when Type =:= counter orelse Type =:= gauge ->
|
||||||
put('$metrics', case get('$metrics') of
|
put('$metrics', case get('$metrics') of
|
||||||
undefined ->
|
undefined ->
|
||||||
#{{Type, Metric} => Val};
|
#{{Type, Metric} => Val};
|
||||||
Metrics ->
|
Metrics ->
|
||||||
maps:update_with({Type, Metric}, fun(Cnt) -> Cnt + Val end, Val, Metrics)
|
maps:update_with({Type, Metric}, fun(Cnt) -> Cnt + Val end, Val, Metrics)
|
||||||
end).
|
end).
|
||||||
|
|
||||||
commit() ->
|
commit() ->
|
||||||
case get('$metrics') of
|
case get('$metrics') of
|
||||||
|
|
Loading…
Reference in New Issue