Skip to content

Commit

Permalink
Fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
mprymek committed Mar 4, 2015
1 parent a9e2396 commit 03ce2e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ use Mix.Config
# here (which is why it is important to import them last).
#
# import_config "#{Mix.env}.exs"

config :logger, :console,
level: :debug
2 changes: 2 additions & 0 deletions lib/kv/registry.ex
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
defmodule KV.Registry do
require Logger
## Client API

@doc """
Starts the registry.
"""
def start_link(event_manager, buckets_supervisor, opts \\ []) do
Logger.debug "#{__MODULE__}.start_link(#{inspect event_manager},#{inspect buckets_supervisor},#{inspect opts})"
GenServer.start_link(__MODULE__, {event_manager, buckets_supervisor}, opts)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/kv/supervisor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ defmodule KV.Supervisor do
worker(GenEvent, [[name: @manager_name]]),
# supervisor(KV.BucketAndRegistrySupervisor, [[name: @bucket_and_reg_sup_name]])
supervisor(KV.Bucket.Supervisor, [[name: @bucket_sup_name]]),
worker(KV.Registry, [@manager_name, [name: @registry_name]])
worker(KV.Registry, [@manager_name, :buckets_supervisor_missing_here, [name: @registry_name]])
]
IO.puts "Supervising children: #{inspect children}"
supervise(children, strategy: :one_for_one)
Expand Down

0 comments on commit 03ce2e4

Please sign in to comment.