Skip to content

Commit

Permalink
Merge b68ffd6 into 43ccb75
Browse files Browse the repository at this point in the history
  • Loading branch information
ImNotAVirus committed Apr 8, 2020
2 parents 43ccb75 + b68ffd6 commit 3a2552b
Show file tree
Hide file tree
Showing 7 changed files with 287 additions and 191 deletions.
3 changes: 2 additions & 1 deletion config/.credo.exs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@
# If you don't want TODO comments to cause `mix credo` to fail, just
# set this value to 0 (zero).
#
{Credo.Check.Design.TagTODO, [priority: :low]},
# {Credo.Check.Design.TagTODO, [priority: :low]},
{Credo.Check.Design.TagTODO, false},
{Credo.Check.Design.TagFIXME, []},

#
Expand Down
8 changes: 4 additions & 4 deletions guides/introduction/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ defmodule LoginServer.Frontend do

@impl ElvenGard.Frontend
def handle_init(args) do
port = get_in(args, [:port])
Logger.info("Login server started on port #{port}")
ip = Keyword.fetch!(args.listener_opts.socket_opts, :ip)
port = Keyword.fetch!(args.listener_opts.socket_opts, :port)
Logger.info("Listening for connections on #{:inet.ntoa(ip)}:#{port}")
{:ok, nil}
end

@impl ElvenGard.Frontend
def handle_connection(socket, transport) do
client = Client.new(socket, transport)
def handle_connection(client) do
Logger.info("New connection: #{client.id}")
{:ok, client}
end
Expand Down

0 comments on commit 3a2552b

Please sign in to comment.