Skip to content

Commit 564b434

Browse files
Suban05p8rafaelfranca
authored
Fix typo in global_executor_concurrency error message (rails#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 <[email protected]> --------- Co-authored-by: Petrik de Heus <[email protected]> Co-authored-by: Rafael Mendonça França <[email protected]>
1 parent df32c38 commit 564b434

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def self.global_thread_pool_async_query_executor # :nodoc:
301301
# with the global thread pool async query executor.
302302
def self.global_executor_concurrency=(global_executor_concurrency)
303303
if self.async_query_executor.nil? || self.async_query_executor == :multi_thread_pool
304-
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."
304+
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."
305305
end
306306

307307
@global_executor_concurrency = global_executor_concurrency

0 commit comments

Comments
 (0)