Skip to content

Commit

Permalink
chore: increase batch size (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziinc authored Jan 10, 2024
1 parent d8f3f52 commit 1e4023a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pipeline.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defmodule Loadfest.Pipeline do

def handle_demand(demand, state) when demand > 0 do
messages = for _i <- 1..demand do
%Broadway.Message{data: Loadfest.Worker.make_batch(), acknowledger: {__MODULE__, :ack, 3}}
%Broadway.Message{data: Loadfest.Worker.make_batch(250), acknowledger: {__MODULE__, :ack, 3}}
end

{:noreply, messages, state}
Expand Down

0 comments on commit 1e4023a

Please sign in to comment.