Align the code

This commit is contained in:
周子博 2018-11-30 17:27:47 +08:00 committed by Feng Lee
parent ddb9eaef7b
commit fde5fbe73a
1 changed files with 5 additions and 5 deletions

View File

@ -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