Navigation Menu

Skip to content

Commit

Permalink
Allow to create instance of ForwardBuffer without environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 30, 2015
1 parent f9bb8cf commit 5d496e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/droonga/forward_buffer.rb
Expand Up @@ -41,7 +41,7 @@ def initialize(node_name)
@unpacker = MessagePack::Unpacker.new

@target = node_name
@serf = Serf.new(ENV["DROONGA_ENGINE_NAME"])
@serf = Serf.new(ENV["DROONGA_ENGINE_NAME"] || node_name)

dirname = node_name.gsub("/", ":")
@data_directory = Path.intentional_buffer + dirname
Expand Down

0 comments on commit 5d496e7

Please sign in to comment.