Navigation Menu

Skip to content

Commit

Permalink
out: simplify comfig_param style
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhys committed Apr 11, 2017
1 parent defa02b commit 752d751
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/fluent/plugin/out_groonga.rb
Expand Up @@ -32,14 +32,7 @@ def initialize
super
end

config_param :protocol, :default => :http do |value|
case value
when "http", "gqtp", "command"
value.to_sym
else
raise ConfigError, "must be http, gqtp or command: <#{value}>"
end
end
config_param :protocol, :enum, :list => [:http, :gqtp, :command], :default => :http

# alias is just for backward compatibility
config_param :store_table, :string, :default => nil, :alias => :table
Expand Down

0 comments on commit 752d751

Please sign in to comment.