Skip to content

Commit 461b7f3

Browse files
committed
Now that we are only setting it once we can set it directly
1 parent abd8179 commit 461b7f3

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

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

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

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

0 commit comments

Comments
 (0)