Skip to content

Commit 3d90922

Browse files
committed
Revert "Now that we are only setting it once we can set it directly"
This reverts commit 461b7f3.
1 parent 142e6ab commit 3d90922

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
# Any libraries that use a connection pool or another resource pool should
2525
# be configured to provide at least as many connections as the number of
2626
# threads. This includes Active Record's `pool` parameter in `database.yml`.
27-
threads ENV.fetch("RAILS_MAX_THREADS", 3)
27+
threads_count = ENV.fetch("RAILS_MAX_THREADS", 3)
28+
threads threads_count
2829

2930
# Specifies the `environment` that Puma will run in.
3031
rails_env = ENV.fetch("RAILS_ENV", "development")

0 commit comments

Comments
 (0)