From b47c2e37237875185d170f32cac67af5ab72f22d Mon Sep 17 00:00:00 2001 From: Craig Paterson Date: Tue, 11 Oct 2022 14:59:50 +1100 Subject: [PATCH] pass state into genserver --- snippets/elixir.snippets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/elixir.snippets b/snippets/elixir.snippets index d217489b6..37b1c0191 100644 --- a/snippets/elixir.snippets +++ b/snippets/elixir.snippets @@ -270,8 +270,8 @@ snippet genserver basic genserver structure end @impl true - def init(_init_args) do - {:ok, []} + def init(state) do + {:ok, state} end snippet super basic supervisor structure use Supervisor