Skip to content

Commit d4197fa

Browse files
authored
[ruby/padrino] Cleanup for Iodine (#10271)
Remove some unused code.
1 parent e6c7d05 commit d4197fa

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

frameworks/Ruby/padrino/app/controllers.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
response['Server'] = 'padrino'
88
end
99

10-
after do
11-
response['Date'] = Time.now.httpdate
12-
end if defined?(Puma)
13-
1410
get '/json', :provides => [:json] do
1511
{message: "Hello, World!"}.to_json
1612
end

frameworks/Ruby/padrino/config/database.rb

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,9 @@
88
}
99

1010
# Determine threading/thread pool size and timeout
11-
if defined?(Puma) && (threads = Puma.cli_config.options.fetch(:max_threads)) > 1
12-
opts[:pool] = threads
13-
opts[:checkout_timeout] = 10
14-
else
15-
# TODO: ActiveRecord doesn't have a single-threaded mode?
16-
opts[:pool] = 1
17-
opts[:checkout_timeout] = 0
18-
end
11+
# TODO: ActiveRecord doesn't have a single-threaded mode?
12+
opts[:pool] = 512
13+
opts[:checkout_timeout] = 5
1914

2015

2116
# Setup our logger

0 commit comments

Comments
 (0)