mirror of https://github.com/rails/rails
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:
parent
df32c3837d
commit
564b434e82
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue