Skip to content

Commit

Permalink
Use exit/1 instead of Process.exit/2 on batch timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
martosaur committed Dec 6, 2024
1 parent c5fc04c commit 11425f3
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 11425f3

Please sign in to comment.