Skip to content

Commit

Permalink
Fix unbounded concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanjos committed Jul 23, 2024
1 parent 84d6efa commit 486ba3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/absinthe/subscription/proxy.ex
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ defmodule Absinthe.Subscription.Proxy do
# bottleneck execution inside each proxy process

unless payload.node == state.pubsub.node_name() do
Task.Supervisor.start_child(state.task_super, Subscription.Local, :publish_mutation, [
Subscription.Local.publish_mutation(
state.pubsub,
payload.mutation_result,
payload.subscribed_fields
])
)
end

{:noreply, state}
Expand Down

0 comments on commit 486ba3e

Please sign in to comment.