graphiti 1.6.1 → 1.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db292ffdb5b46b46d42e012cd68acc342649e28fc6f9cf7c5769db4e0b4bda21
4
- data.tar.gz: 2ae2161355c2dccf3fc833831f39eff69639967885e81f25594b75de4fcaca22
3
+ metadata.gz: c7e9a22a29df9a53ef4c2da7a6bb102c4407f21201440cd0888015c2442895b5
4
+ data.tar.gz: 405ed0c5ee38118ef4b535bc5751dcb960630117ca9ca1706b69bb91eda6df4a
5
5
  SHA512:
6
- metadata.gz: 57306d14268453ee0629e952ff85f23becb6bb2f76b9f238bd7f9030214181020baa3ea227f23d23225cb8e67398a693d1662c2f4d2e64a67629b46a8b47cf16
7
- data.tar.gz: a60d925e5fedb2fe79813d128cc5a6f2fb957bce509372c4b22456b04eab2f795bdbd1d1937cdf1176883338845567648e84cc8d7dd03844b0cafefb2f2d140f
6
+ metadata.gz: fa1bbea7813069ac8c97bacdb7d298162bc55121771974693264c81b5b85da9420aef3d3c0509e96013f9266861e6a0e8dc61853e88dcb88b7cc7c9ddf83fa99
7
+ data.tar.gz: 9929dda99cd0fecbbac7939c1a161f43f20944921950cf8f4e8bb30c30251fcbf1f253364ee7fe4c7c442e4eafb7d74c6c2cb6347835f7cdbc71713c31938639
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  graphiti changelog
2
2
 
3
+ ## [1.6.2](https://github.com/graphiti-api/graphiti/compare/v1.6.1...v1.6.2) (2024-03-22)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * thread pool scope and mutex need to be global across all instances of Scope for it to be a global thread pool ([#471](https://github.com/graphiti-api/graphiti/issues/471)) ([51fb51c](https://github.com/graphiti-api/graphiti/commit/51fb51c31f0043d98aa07f689a8cf8c758fa823b))
9
+
3
10
  ## [1.6.1](https://github.com/graphiti-api/graphiti/compare/v1.6.0...v1.6.1) (2024-03-22)
4
11
 
5
12
 
@@ -3,14 +3,14 @@ module Graphiti
3
3
  attr_accessor :object, :unpaginated_object
4
4
  attr_reader :pagination
5
5
 
6
- @thread_pool_executor_mutex = Mutex.new
6
+ @@thread_pool_executor_mutex = Mutex.new
7
7
 
8
8
  def self.thread_pool_executor
9
9
  return @thread_pool_executor if @thread_pool_executor
10
10
 
11
11
  concurrency = Graphiti.config.concurrency_max_threads || 4
12
- @thread_pool_executor ||= @thread_pool_executor_mutex.synchronize do
13
- Concurrent::ThreadPoolExecutor.new(
12
+ @@thread_pool_executor_mutex.synchronize do
13
+ @@thread_pool_executor ||= Concurrent::ThreadPoolExecutor.new(
14
14
  min_threads: 0,
15
15
  max_threads: concurrency,
16
16
  max_queue: concurrency * 4,
@@ -1,3 +1,3 @@
1
1
  module Graphiti
2
- VERSION = "1.6.1"
2
+ VERSION = "1.6.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond