Fix typo in `global_executor_concurrency` error message (#52103)

* Fix typo in `global_executor_concurrency` error message

* removed `using` and replace multi_thread_pool with `:multi_thread_pool`

Co-authored-by: Petrik de Heus <petrik@deheus.net>

---------

Co-authored-by: Petrik de Heus <petrik@deheus.net>
Co-authored-by: Rafael Mendonça França <rafael@rubyonrails.org>
This commit is contained in:
Anatoly Busygin 2024-06-12 22:53:40 +03:00 committed by GitHub
parent df32c3837d
commit 564b434e82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ module ActiveRecord
# with the global thread pool async query executor.
def self.global_executor_concurrency=(global_executor_concurrency)
if self.async_query_executor.nil? || self.async_query_executor == :multi_thread_pool
raise ArgumentError, "`global_executor_concurrency` cannot be set when using the executor is nil or set to multi_thead_pool. For multiple thread pools, please set the concurrency in your database configuration."
raise ArgumentError, "`global_executor_concurrency` cannot be set when the executor is nil or set to `:multi_thread_pool`. For multiple thread pools, please set the concurrency in your database configuration."
end
@global_executor_concurrency = global_executor_concurrency