Skip to content

Commit

Permalink
Merge pull request #5 from Frameio/mikes/synchronous-local-dispatch
Browse files Browse the repository at this point in the history
[REL-114] Execute local subscription dispatch synchronously
  • Loading branch information
koudelka authored Jun 13, 2024
2 parents 253b1f3 + a8de84c commit 518f29e
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 518f29e

Please sign in to comment.