Navigation Menu

Skip to content

Commit

Permalink
Isolate EngineState from NodeMeatadata
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 21, 2015
1 parent 3dabc74 commit dbec0aa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/droonga/engine_state.rb
Expand Up @@ -20,7 +20,6 @@
require "droonga/event_loop"
require "droonga/forwarder"
require "droonga/replier"
require "droonga/node_metadata"

module Droonga
class EngineState
Expand All @@ -47,7 +46,6 @@ def initialize(loop, name, internal_name, params)
@replier = Replier.new(@forwarder)
@on_finish = nil
@catalog = params[:catalog]
@node_metadata = params[:metadata]
end

def start
Expand Down Expand Up @@ -150,7 +148,7 @@ def have_session?
end

def role
@node_metadata.role
NodeRole.my_role
end

private
Expand Down

0 comments on commit dbec0aa

Please sign in to comment.