2 Commits

Author SHA1 Message Date
  Piotr Orzechowski b1ee0a42c8 Move listen port to config file 3 months ago
  Piotr Orzechowski 148867823c Move listen port to config file 3 months ago
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      apps/kv_server/lib/kv_server/application.ex

+ 1
- 1
apps/kv_server/lib/kv_server/application.ex View File

@@ -21,7 +21,7 @@ defmodule KVServer.Application do
21 21
     Supervisor.start_link(children, opts)
22 22
   end
23 23
 
24
-  defp listen_port() do
24
+  defp listen_port do
25 25
     case System.get_env("KV_PORT") do
26 26
       nil -> Application.fetch_env!(:kv_server, :listen_port)
27 27
       port -> String.to_integer(port)

Loading…
Cancel
Save