Current section

59 Versions

Jump to

Compare versions

4 files changed
+7 additions
-5 deletions
  @@ -28,4 +28,4 @@
28 28 {<<"optional">>,false},
29 29 {<<"repository">>,<<"hexpm">>},
30 30 {<<"requirement">>,<<"~> 0.4">>}]]}.
31 - {<<"version">>,<<"0.3.0">>}.
31 + {<<"version">>,<<"0.3.1">>}.
  @@ -6,7 +6,7 @@ defmodule Cloister.Monitor do
6 6
7 7 require Logger
8 8
9 - @type status :: :down | :starting | :up | :stopping | :rehashing | :panic
9 + @type status :: :down | :starting | :joined | :up | :stopping | :rehashing | :panic
10 10
11 11 @type t :: %{
12 12 __struct__: Cloister.Monitor,
  @@ -32,7 +32,7 @@ defmodule Cloister.Monitor do
32 32 alias Cloister.Monitor, as: Mon
33 33
34 34 # millis
35 - @refresh_rate 1_000
35 + @refresh_rate 300
36 36
37 37 @spec start_link(opts :: keyword()) :: GenServer.on_start()
38 38 def start_link(opts \\ []) do
  @@ -98,7 +98,7 @@ defmodule Cloister.Monitor do
98 98 clustered?: true
99 99 }
100 100
101 - {:noreply, notify(:up, state)}
101 + {:noreply, notify(:joined, state)}
102 102 else
103 103 {:noreply, state, {:continue, :quorum}}
104 104 end
  @@ -15,6 +15,8 @@ defmodule Cloister.Modules do
15 15 _ ->
16 16 ast =
17 17 quote do
18 + @moduledoc false
19 +
18 20 @spec whois(term :: term()) :: node()
19 21 def whois(term) do
20 22 case HashRing.Managed.key_to_node(unquote(ring), term) do
  @@ -2,7 +2,7 @@ defmodule Cloister.MixProject do
2 2 use Mix.Project
3 3
4 4 @app :cloister
5 - @version "0.3.0"
5 + @version "0.3.1"
6 6
7 7 def project do
8 8 [