15 lines
297 B
Elixir
15 lines
297 B
Elixir
defmodule Prymn.Messaging.FooConsumer do
|
|
use GenServer
|
|
|
|
@impl true
|
|
def init(reply) do
|
|
{:ok, reply}
|
|
end
|
|
|
|
@impl true
|
|
def handle_info({:msg, %{topic: subject, body: body}}, reply) do
|
|
dbg("received on fooconsumer: #{subject}")
|
|
send(reply, body)
|
|
{:noreply, reply}
|
|
end
|
|
end
|