Navigation Menu

Skip to content

Commit

Permalink
droonga-engine: reduce modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 21, 2014
1 parent c60caf1 commit 626dc91
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/droonga/engine/command/droonga_engine.rb
Expand Up @@ -39,7 +39,7 @@ def initialize

def run(command_line_arguments)
parse_command_line_arguments!(command_line_arguments)
Droonga::PluginLoader.load_all
PluginLoader.load_all

raw_loop = Coolio::Loop.default
loop = EventLoop.new(raw_loop)
Expand Down Expand Up @@ -77,7 +77,7 @@ def parse_command_line_arguments!(command_line_arguments)
"(#{@tag})") do |tag|
@tag = tag
end
levels = Droonga::Logger::Level::LABELS
levels = Logger::Level::LABELS
levels_label = levels.join(",")
parser.on("--log-level=LEVEL", levels,
"The log level of the Droonga engine",
Expand All @@ -91,7 +91,7 @@ def parse_command_line_arguments!(command_line_arguments)
end

def run_engine(loop)
engine = Droonga::Engine.new(loop, engine_name)
engine = Engine.new(loop, engine_name)
begin
engine.start
yield(engine)
Expand Down Expand Up @@ -131,9 +131,9 @@ def run_receiver(loop, engine)

engine.process(message)
end
receiver = Droonga::FluentMessageReceiver.new(loop,
receiver_options,
&on_message)
receiver = FluentMessageReceiver.new(loop,
receiver_options,
&on_message)
begin
receiver.start
yield(receiver)
Expand Down

0 comments on commit 626dc91

Please sign in to comment.