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 ->
|
||||
put('$metrics', case get('$metrics') of
|
||||
undefined ->
|
||||
#{{Type, Metric} => Val};
|
||||
Metrics ->
|
||||
maps:update_with({Type, Metric}, fun(Cnt) -> Cnt + Val end, Val, Metrics)
|
||||
end).
|
||||
undefined ->
|
||||
#{{Type, Metric} => Val};
|
||||
Metrics ->
|
||||
maps:update_with({Type, Metric}, fun(Cnt) -> Cnt + Val end, Val, Metrics)
|
||||
end).
|
||||
|
||||
commit() ->
|
||||
case get('$metrics') of
|
||||
|
|
Loading…
Reference in New Issue