diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-01-14 13:57:16 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-01-14 13:57:16 +0900 |
commit | 87eef66181c9defc2d44ddd536e23b691f754b91 (patch) | |
tree | 228f1d1ada3f60632617b8914556d9c277ecf0e6 /lib/plum/rack/cli.rb | |
parent | f9ece97b169e1cbb94db29fc7ced3b94f1c43190 (diff) | |
download | plum-87eef66181c9defc2d44ddd536e23b691f754b91.tar.gz |
rack: remove threaded option. use threadpool_size=1 instead
Diffstat (limited to 'lib/plum/rack/cli.rb')
-rw-r--r-- | lib/plum/rack/cli.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/plum/rack/cli.rb b/lib/plum/rack/cli.rb index 9d8a03d..31e8b3f 100644 --- a/lib/plum/rack/cli.rb +++ b/lib/plum/rack/cli.rb @@ -44,7 +44,6 @@ module Plum ENV["RACK_ENV"] = @options[:env] if @options[:env] config[:debug] = @options[:debug] unless @options[:debug].nil? config[:server_push] = @options[:server_push] unless @options[:server_push].nil? - config[:threaded] = @options[:threaded] unless @options[:threaded].nil? config[:threadpool_size] = @options[:threadpool_size] unless @options[:threadpool_size].nil? if @options[:fallback_legacy] @@ -121,11 +120,7 @@ module Plum @options[:key] = arg end - o.on "--threaded", "Call the Rack application in threads (experimental)" do - @options[:threaded] = true - end - - o.on "--threadpool-size SIZE", "Set the size of thread pool" do |arg| + o.on "--threadpool-size SIZE", "Set the size of thread pool. Set 1 to disable" do |arg| @options[:threadpool_size] = arg.to_i end |