lib/grizzly/command_handlers/ack_response.ex
defmodule Grizzly.CommandHandlers.AckResponse do
@moduledoc """
This handler is useful for most set commands that only needs to be
acknowledged
"""
@behaviour Grizzly.CommandHandler
@impl true
def init(_) do
{:ok, nil}
end
@impl true
def handle_ack(_), do: {:complete, :ok}
@impl true
def handle_command(_, state), do: {:continue, state}
end