Skip to content

Instantly share code, notes, and snippets.

@softberries
Created March 21, 2023 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save softberries/e8cc5f66286bf0d5b41520455c1319e6 to your computer and use it in GitHub Desktop.
Save softberries/e8cc5f66286bf0d5b41520455c1319e6 to your computer and use it in GitHub Desktop.
def handle_batch(:enroute, messages, batch_info, _) do
IO.puts("#{inspect(self())} Enroute Batch #{batch_info.batch_key}")
list = messages |> Enum.map(fn e -> e.data end)
IO.inspect(list, label: "Got enroute batch: ")
messages
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment