From 3227d2aa5d5a21971fbd11cc8cb30aa2309de4fc Mon Sep 17 00:00:00 2001 From: Shane Sveller Date: Tue, 11 Apr 2023 12:55:16 -0500 Subject: [PATCH] chore(elixir): permit noreply outcomes from `Ockam.Services.API.Endpoint` callback modules --- .../ockam/ockam_services/lib/services/api/endpoint.ex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/implementations/elixir/ockam/ockam_services/lib/services/api/endpoint.ex b/implementations/elixir/ockam/ockam_services/lib/services/api/endpoint.ex index 82f9113aba1..4467783059c 100644 --- a/implementations/elixir/ockam/ockam_services/lib/services/api/endpoint.ex +++ b/implementations/elixir/ockam/ockam_services/lib/services/api/endpoint.ex @@ -125,6 +125,12 @@ defmodule Ockam.Services.API.Endpoint do {:ok, body, new_endpoint_state} -> {:reply, :ok, body, %{state | endpoint_state: new_endpoint_state}} + :noreply -> + {:noreply, state} + + {:noreply, new_endpoint_state} -> + {:noreply, %{state | endpoint_state: new_endpoint_state}} + {:error, reason} -> {:error, reason} end