Spear.resign_node
You're seeing just the function
resign_node
, go back to Spear module for more information.
Specs
resign_node(connection :: Spear.Connection.t(), opts :: Keyword.t()) :: :ok | {:error, any()}
Requests that the currently connected node resign its leadership role
See the EventStoreDB documentation for more information.
A user does not need to be in $ops
or any group to initiate this request.
Options
Options are passed to request/5
.
Examples
iex> Spear.resign_node(conn)
:ok