diff --git a/lib/aprsme/connection_monitor.ex b/lib/aprsme/connection_monitor.ex index 969bf31..52ba255 100644 --- a/lib/aprsme/connection_monitor.ex +++ b/lib/aprsme/connection_monitor.ex @@ -22,6 +22,13 @@ defmodule Aprsme.ConnectionMonitor do :last_check ] + @type t :: %__MODULE__{ + node_stats: %{optional(node()) => map()}, + local_connections: non_neg_integer(), + draining: boolean(), + last_check: integer() + } + def start_link(opts) do GenServer.start_link(__MODULE__, opts, name: __MODULE__) end diff --git a/lib/aprsme_web/live/map_live/packet_batcher.ex b/lib/aprsme_web/live/map_live/packet_batcher.ex index 131b9a3..f8aa71b 100644 --- a/lib/aprsme_web/live/map_live/packet_batcher.ex +++ b/lib/aprsme_web/live/map_live/packet_batcher.ex @@ -14,6 +14,12 @@ defmodule AprsmeWeb.MapLive.PacketBatcher do defstruct [:parent_pid, :buffer, :timer_ref] + @type t :: %__MODULE__{ + parent_pid: pid(), + buffer: [map()], + timer_ref: reference() | nil + } + @doc """ Start the packet batcher for a LiveView process. """