 
   def init([]) do
     if Config.enabled? do
-      {:ok, sock} = :gen_tcp.connect(Config.host, Config.port, [mode: :binary, packet: 0, active: false, keepalive: true])
-      {:ok, %{sock: sock, state: nil}, 0}
+      {:ok, %State{}, 0}
     else
       :ignore
     end

#

defmodule Instrumental.Connection do
  alias Instrumental.Protocol
  alias Instrumental.Config


    :gen_tcp.close(sock)
    :ok
  end

  #
  # Private
  #

  defp connect do
    :gen_tcp.connect(Config.host, Config.port, [mode: :binary, packet: 0, active: false, keepalive: true])
  end
end
