Navigation Menu

Skip to content

Commit

Permalink
in: simplify config_param style
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhys committed Apr 11, 2017
1 parent 0d4a07b commit 955d843
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/fluent/plugin/in_groonga.rb
Expand Up @@ -33,14 +33,7 @@ def initialize
super
end

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

def configure(conf)
super
Expand Down

0 comments on commit 955d843

Please sign in to comment.