Skip to content

Commit

Permalink
Merge pull request #1348 from martosaur/am/immediately_exit_on_batch_…
Browse files Browse the repository at this point in the history
…timeout

Use exit/1 instead of Process.exit/2 on batch timeout
  • Loading branch information
benwilson512 authored Dec 8, 2024
2 parents c5fc04c + 11425f3 commit 389111c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/absinthe/middleware/batch.ex
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ defmodule Absinthe.Middleware.Batch do

_ ->
emit_timeout_event(batch_fun, timeout)
Process.exit(self(), :timeout)
exit({:timeout, timeout, batch_fun})
end
end

Expand Down

0 comments on commit 389111c

Please sign in to comment.