key = "#{keyspace}:#{key}"
parts = String.split(key, split_on)
head = Enum.slice(parts, 0..(min - 1))
- itr = Enum.slice(parts, min..-2)
+ itr = Enum.slice(parts, min..-2//1)
node = get_prefix(head, r, me, repls, n, ref)
{_, nodes} =
end
def handle_info(e, s, sl) do
- Logger.warn("Unknown Info Event: #{inspect(e)} in state #{s} with data #{inspect(sl)}")
+ Logger.warning("Unknown Info Event: #{inspect(e)} in state #{s} with data #{inspect(sl)}")
{:ok, sl, []}
end
value :: any()
) :: :ok
defp send_sync(_name, {:error, er}, _key, _value) do
- Logger.warn("No nodes to sync with, #{inspect(er)}")
+ Logger.warning("No nodes to sync with, #{inspect(er)}")
end
defp send_sync(name, nodes, key, value) do
[
app: :cluster_kv,
version: "0.1.0",
- elixir: "~> 1.9",
+ elixir: "~> 1.17",
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
{:libcluster, "~> 3.2"},
{:libring, "~> 1.4"},
{:poolboy, "~> 1.5"},
- {:states_language, "~> 0.3"}
+ {:states_language, "~> 0.4"}
]
end