Skip to content

Commit c53102b

Browse files
Merge pull request rails#26060 from siong1987/minor/puma-config
.to_i is unnecessary for puma threads.
2 parents b326e82 + 5ea4729 commit c53102b

File tree

1 file changed

+1
-1
lines changed
  • railties/lib/rails/generators/rails/app/templates/config

1 file changed

+1
-1
lines changed

railties/lib/rails/generators/rails/app/templates/config/puma.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# the maximum value specified for Puma. Default is set to 5 threads for minimum
55
# and maximum, this matches the default thread size of Active Record.
66
#
7-
threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i
7+
threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
88
threads threads_count, threads_count
99

1010
# Specifies the `port` that Puma will listen on to receive requests, default is 3000.

0 commit comments

Comments
 (0)