   end
 
   def unregister(name) do
-    GenServer.cast(__MODULE__, name)
+    GenServer.cast(__MODULE__, {:unregister, name})
     :ok
   end
 

  def register(name, probe) do
    if genserver_running?() do
      if is_function(probe) do
        GenServer.cast(__MODULE__, {name, probe})
        :ok
      else
        Logger.debug(fn ->

    {:noreply, Map.put(probes, name, probe)}
  end

  def handle_cast({:unregister, name}, probes) do
    {:noreply, Map.delete(probes, name)}
  end

