Navigation Menu

Skip to content

Commit

Permalink
Fix syntax error as Ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 24, 2014
1 parent 6a63934 commit fe1150f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/droonga/catalog_generator.rb
Expand Up @@ -115,20 +115,20 @@ def generate_replica
slices << generate_slice
end
{
"dimension": "_key",
"slicer": "hash",
"slices": slices
"dimension" => "_key",
"slicer" => "hash",
"slices" => slices,
}
end

def generate_slice
name = sprintf('%03d', @n_volumes)
@n_volumes += 1
{
"weight": weight,
"volume": {
"address": "#{host}:#{port}/#{tag}.#{name}"
}
"weight" => weight,
"volume" => {
"address" => "#{host}:#{port}/#{tag}.#{name}",
},
}
end

Expand Down

0 comments on commit fe1150f

Please sign in to comment.