Skip to content

Commit

Permalink
execute local subscription dispatch synchronously
Browse files Browse the repository at this point in the history
  • Loading branch information
koudelka committed Jun 11, 2024
1 parent 253b1f3 commit c8d845b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/absinthe/subscription/proxy.ex
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ 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, [
state.pubsub,
payload.mutation_result,
payload.subscribed_fields
])
Subscription.Local.publish_mutation(state.pubsub, payload.mutation_result, payload.subscribed_fields)
end

{:noreply, state}
Expand Down

0 comments on commit c8d845b

Please sign in to comment.