We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3899855 commit 0400ab0Copy full SHA for 0400ab0
lib/graphiti/scope.rb
@@ -9,8 +9,8 @@ def self.thread_pool_executor
9
return @thread_pool_executor if @thread_pool_executor
10
11
concurrency = Graphiti.config.concurrency_max_threads || 4
12
- @thread_pool_executor_mutex.synchronize do
13
- @thread_pool_executor ||= Concurrent::ThreadPoolExecutor.new(
+ @thread_pool_executor ||= @thread_pool_executor_mutex.synchronize do
+ Concurrent::ThreadPoolExecutor.new(
14
min_threads: 0,
15
max_threads: concurrency,
16
max_queue: concurrency * 4,
0 commit comments