Skip to content

Commit

Permalink
set key_expr
Browse files Browse the repository at this point in the history
  • Loading branch information
s-hosoai committed Mar 15, 2024
1 parent 957ce9c commit f0c6389
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/zenohex_phoenix_demo/zenohex_manager.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ defmodule ZenohexPhoenixDemo.ZenohexManager do
def init(args) do
session = Map.fetch!(args, :session)
key_expr = Map.fetch!(args, :key_expr)
{:ok, subscriber} = Zenohex.Session.declare_subscriber(session, "demo/example/zenohex-elixir-put")
{:ok, publisher} = Zenohex.Session.declare_publisher(session, "demo/example/zenohex-phoenix-put")

{:ok, subscriber} = Zenohex.Session.declare_subscriber(session, key_expr)
{:ok, publisher} = Zenohex.Session.declare_publisher(session, key_expr)
state = %{subscriber: subscriber, publisher: publisher, callback: &callback/1, msgs: []}

recv_timeout(state)
Expand Down

0 comments on commit f0c6389

Please sign in to comment.