Skip to content

Commit

Permalink
Fix bad ordering of keys
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Dec 7, 2023
1 parent 79dba51 commit 03520f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/opuntia_srv.erl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ init({Name, Args}) ->
State = #opuntia_state{name = Name, max_delay = MaxDelay, gc_ttl = GCTTL, gc_time = GCInt},
{ok, schedule_cleanup(State)}.

handle_call({wait, Tokens, Key, Config}, From,
handle_call({wait, Key, Tokens, Config}, From,
#opuntia_state{name = Name, max_delay = MaxDelayMs} = State) ->
Shaper = find_or_create_shaper(State, Key, Config),
{UpdatedShaper, Delay} = opuntia:update(Shaper, Tokens),
Expand Down

0 comments on commit 03520f6

Please sign in to comment.