Skip to content

Commit

Permalink
pass state into genserver
Browse files Browse the repository at this point in the history
  • Loading branch information
craigp authored and lpil committed Oct 13, 2022
1 parent 5385107 commit b47c2e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snippets/elixir.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b47c2e3

Please sign in to comment.