Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
derekkraan committed Feb 12, 2024
1 parent 509e377 commit 065ffd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 4 additions & 3 deletions lib/horde/distribution_strategy.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ defmodule Horde.DistributionStrategy do
- `Horde.UniformQuorumDistribution`
- `Horde.UniformRandomDistribution`
"""
@type member :: Horde.DynamicSupervisor.Member.t()
@callback choose_node(
spec :: Supervisor.child_spec(),
members :: [Horde.DynamicSupervisor.Member.t()]
members :: [member()]
) ::
{:ok, Horde.DynamicSupervisor.Member.t()} | {:error, reason :: String.t()}
@callback has_quorum?(members :: [Horde.DynamicSupervisor.Member.t()]) :: boolean()
{:ok, member()} | {:error, reason :: String.t()}
@callback has_quorum?(members :: [member()]) :: boolean()
end
2 changes: 0 additions & 2 deletions lib/horde/dynamic_supervisor_impl.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
defmodule Horde.DynamicSupervisor.Member do
@moduledoc false

@type t :: %Horde.DynamicSupervisor.Member{}
@type status :: :uninitialized | :alive | :shutting_down | :dead
defstruct [:status, :name]
Expand Down

0 comments on commit 065ffd4

Please sign in to comment.