Skip to content

Commit d3070f6

Browse files
MikaAKbitwalker
authored andcommitted
Update managed_ring.ex
1 parent a73c2ea commit d3070f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/managed_ring.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ defmodule HashRing.Managed do
4949
def child_spec(opts) do
5050
opts = Keyword.put_new(opts, :name, :hash_ring_manager)
5151

52-
%{
52+
Keyword.merge(%{
5353
id: opts[:id] || opts[:name],
5454
type: :worker,
5555
restart: :permanent,
5656
start: {__MODULE__, :run, [opts[:name], Keyword.take(opts, @valid_ring_opts)]}
57-
}
57+
}, Keyword.drop(opts, @valid_ring_opts))
5858
end
5959

6060
@doc """

0 commit comments

Comments
 (0)