Skip to content

Commit 389111c

Browse files
authored
Merge pull request #1348 from martosaur/am/immediately_exit_on_batch_timeout
Use exit/1 instead of Process.exit/2 on batch timeout
2 parents c5fc04c + 11425f3 commit 389111c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/absinthe/middleware/batch.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ defmodule Absinthe.Middleware.Batch do
163163

164164
_ ->
165165
emit_timeout_event(batch_fun, timeout)
166-
Process.exit(self(), :timeout)
166+
exit({:timeout, timeout, batch_fun})
167167
end
168168
end
169169

0 commit comments

Comments
 (0)