Deployment and lifecycle management for Nix
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

agent: socket_client -> client

+6 -8
+1 -1
apps/peer_node/lib/peer_node.ex
··· 117 117 118 118 put_env( 119 119 node, 120 - SowerAgent.SocketClient, 120 + SowerAgent.Client, 121 121 uri: "ws://#{:inet.ntoa(central_node_ip())}:7150/agent/websocket", 122 122 reconnect_after_msec: [200, 500, 1000, 2000] 123 123 )
-2
apps/sower_agent/lib/sower_agent.ex
··· 1 - defmodule SowerAgent do 2 - end
+1 -1
apps/sower_agent/lib/sower_agent/application.ex
··· 9 9 def start(_type, _args) do 10 10 children = [ 11 11 # Starts a worker by calling: SowerAgent.Worker.start_link(arg) 12 - {SowerAgent.SocketClient, []}, 12 + {SowerAgent.Client, []}, 13 13 {SowerAgent.Storage, []}, 14 14 {Task.Supervisor, name: SowerAgent.TaskSupervisor} 15 15 ]
+2 -2
apps/sower_agent/lib/sower_agent/config.ex
··· 116 116 end 117 117 ) 118 118 119 - Application.put_env(SowerAgent.SocketClient, :uri, uri) 120 - Application.put_env(SowerAgent.SocketClient, :reconnect_after_msec, [200, 500, 1_000, 2_000]) 119 + Application.put_env(SowerAgent.Client, :uri, uri) 120 + Application.put_env(SowerAgent.Client, :reconnect_after_msec, [200, 500, 1_000, 2_000]) 121 121 122 122 nil 123 123 end
+1 -1
apps/sower_agent/lib/sower_agent/socket_client.ex apps/sower_agent/lib/sower_agent/client.ex
··· 1 - defmodule SowerAgent.SocketClient do 1 + defmodule SowerAgent.Client do 2 2 use SowerAgent.ChannelClient, lobby_topic: "agent:lobby" 3 3 4 4 require Logger
+1 -1
config/test.exs
··· 29 29 config :sower, :database, 30 30 encryption_key: "UIFQeYN5EBgkXgK502I8mosh3vbEj3AE1rRwWJDysBk=" |> Base.decode64!() 31 31 32 - config :sower_agent, SocketClient, 32 + config :sower_agent, Client, 33 33 uri: "ws://example.org/socket/websocket", 34 34 reconnect_after_msec: [200, 500, 1_000, 2_000]