Skip to content

Commit

Permalink
♻️ Refactor Frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
ImNotAVirus committed Apr 7, 2020
1 parent 43ccb75 commit 492b3c6
Show file tree
Hide file tree
Showing 6 changed files with 276 additions and 184 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
3 changes: 1 addition & 2 deletions guides/introduction/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ defmodule LoginServer.Frontend do
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
Loading

0 comments on commit 492b3c6

Please sign in to comment.