Merge remote-tracking branch 'origin/release-v43' into release-v44
This commit is contained in:
commit
62878e7851
|
@ -335,6 +335,8 @@ handle_call({create_rule_metrics, Id}, _From,
|
|||
_ -> RuleSpeeds#{Id => #rule_speed{}}
|
||||
end}};
|
||||
|
||||
handle_call({reset_speeds, _Id}, _From, State = #state{rule_speeds = undefined}) ->
|
||||
{reply, ok, State};
|
||||
handle_call({reset_speeds, Id}, _From, State = #state{rule_speeds = RuleSpeedMap}) ->
|
||||
{reply, ok, State#state{rule_speeds = maps:put(Id, #rule_speed{}, RuleSpeedMap)}};
|
||||
|
||||
|
|
Loading…
Reference in New Issue