Skip to content

Commit

Permalink
DistributedAtomic.Worker implements sub_get as a call
Browse files Browse the repository at this point in the history
  • Loading branch information
philipgiuliani committed Jul 12, 2024
1 parent dc25b42 commit 9d295ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ defmodule Membrane.Core.Element.AtomicDemand.DistributedAtomic do
end

def sub_get(%__MODULE__{} = distributed_atomic, value) do
GenServer.cast(distributed_atomic.worker, {:sub_get, distributed_atomic.atomic_ref, value})
GenServer.call(distributed_atomic.worker, {:sub_get, distributed_atomic.atomic_ref, value})
end

@spec set(t, integer()) :: :ok
Expand Down

0 comments on commit 9d295ad

Please sign in to comment.