Skip to content

Commit

Permalink
Correctly set sentinel on initial call
Browse files Browse the repository at this point in the history
  • Loading branch information
jchristgit committed Jun 9, 2023
1 parent 2603b0b commit c45582b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nostrum/api/ratelimiter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ defmodule Nostrum.Api.Ratelimiter do
# out until we have ratelimit information from it, at which point other
# requests are ran from the queue.
run_request = {:next_event, :internal, {:run, request, bucket, from}}
data_with_new_queue = put_in(data, [:outstanding, bucket], {0, :queue.new()})
data_with_new_queue = put_in(data, [:outstanding, bucket], {:initial, :queue.new()})
{:keep_state, data_with_new_queue, [run_request]}
end
end
Expand Down

0 comments on commit c45582b

Please sign in to comment.