diff --git a/.gitignore b/.gitignore index ed06e55..8625f70 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +/.elixir_ls + # The directory Mix will write compiled artifacts to. /mix.lock /_build diff --git a/README.md b/README.md index 131c4a9..65f8b36 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ end def deps do [ - {:distributed, "~> 0.1.0"}, + {:distributed, "~> 0.1.3"}, ] end ``` diff --git a/lib/distributed.ex b/lib/distributed.ex index de93a59..1c4085e 100644 --- a/lib/distributed.ex +++ b/lib/distributed.ex @@ -47,8 +47,9 @@ defmodule Distributed do end def set(key, value) do - Distributed.Replicator.GenServer.cast(__MODULE__.process_id(), {:set, key, value}) - |> List.first() + {_node_name, result} = Distributed.Replicator.GenServer.cast(__MODULE__.process_id(), {:set, key, value}) + |> List.first() + result end def has?(key) do @@ -56,8 +57,9 @@ defmodule Distributed do end def pop(key, default \\\\ nil) do - Distributed.Replicator.GenServer.call(__MODULE__.process_id(), {:pop, key, default}) - |> List.first() + {_node_name, result} = Distributed.Replicator.GenServer.call(__MODULE__.process_id(), {:pop, key, default}) + |> List.first() + result end end @@ -80,7 +82,7 @@ defmodule Distributed do def deps do [ - {:distributed, "~> 0.1.0"}, + {:distributed, "~> 0.1.3"}, ] end """ diff --git a/mix.exs b/mix.exs index 644f96d..823c0b3 100644 --- a/mix.exs +++ b/mix.exs @@ -9,7 +9,7 @@ defmodule Distributed.Mixfile do description: description(), package: package(), app: :distributed, - version: "0.1.2", + version: "0.1.3", elixir: "~> 1.4", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod,