async-pool 0.10.0 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac992b5e13d56d0441655030e1ac893d10ceda32d022b38daf45e12539b8199e
4
- data.tar.gz: 14d3a0585ad5d89f6b5016858b8fba5096bb71a703f9fafa1fcfe927ccad3355
3
+ metadata.gz: 9e6e8dc07c2eb994f4dbf4080dee0fee32bd965cb10a103798673d05a6a71078
4
+ data.tar.gz: 551b810930f43923d32f7236f48922311fb99e14243408e79f7d8f5f28dd3f0b
5
5
  SHA512:
6
- metadata.gz: f9ca9ce26be39afc0986243da26a97432ebc1761ba71e9f4ac2de8e7a9fdad161600276430a52737ddac43226c012c465c471c74442c4f5e146a4b20d530a5b1
7
- data.tar.gz: bd9e8f5f3a90c08ae3faadfcd5d7ef1db9063d57b25e8ed2f981ccdba31968cfffdc98e1456fa01b5f42f1d112d1db560d69896fd7e9319225ac916aa8787422
6
+ metadata.gz: 9f368abe8db1c8e04cba458cac6377d0dbd594dd78ceb1baf39f4ac8db6ca32e699525be155b828b0d8ff82e476c532548a83592bdfb7c169af749f5c06c5622
7
+ data.tar.gz: aa19bcf1f837e7c1c2472afae94ccb6f0af39ad6e7520b80d09d5f99756ff0adcbf81750b53a8934620d63cd64371f8c46640af18ba1e97c72f9c737d4fad34c
checksums.yaml.gz.sig CHANGED
Binary file
@@ -324,11 +324,7 @@ module Async
324
324
  def available_resource
325
325
  resource = nil
326
326
 
327
- Console.debug(self, "Acquiring concurrency guard...", blocking: @guard.blocking?)
328
-
329
327
  @guard.acquire do
330
- Console.debug(self, "Acquired concurrency guard.")
331
-
332
328
  resource = acquire_or_create_resource
333
329
  end
334
330
 
@@ -390,11 +386,9 @@ module Async
390
386
  def create_resource(...)
391
387
  attributes = {
392
388
  concurrency: @guard.limit,
393
- size: @resources.size,
394
- limit: @limit,
395
389
  }
396
390
 
397
- @attributes.merge!(@tags) if @tags
391
+ attributes.merge!(@tags) if @tags
398
392
 
399
393
  Traces.trace('async.pool.create', attributes: attributes) {super}
400
394
  end
@@ -404,44 +398,38 @@ module Async
404
398
  size: @resources.size,
405
399
  }
406
400
 
407
- @attributes.merge!(@tags) if @tags
401
+ attributes.merge!(@tags) if @tags
408
402
 
409
403
  Traces.trace('async.pool.drain', attributes: attributes) {super}
410
404
  end
411
405
 
412
406
  def acquire(...)
413
407
  attributes = {
414
- concurrency: @guard.limit,
415
408
  size: @resources.size,
416
409
  limit: @limit,
417
410
  }
418
411
 
419
- @attributes.merge!(@tags) if @tags
412
+ attributes.merge!(@tags) if @tags
420
413
 
421
414
  Traces.trace('async.pool.acquire', attributes: attributes) {super}
422
415
  end
423
416
 
424
417
  def release(...)
425
418
  attributes = {
426
- concurrency: @guard.limit,
427
419
  size: @resources.size,
428
- limit: @limit,
429
420
  }
430
421
 
431
- @attributes.merge!(@tags) if @tags
422
+ attributes.merge!(@tags) if @tags
432
423
 
433
424
  Traces.trace('async.pool.release', attributes: attributes) {super}
434
425
  end
435
426
 
436
427
  def retire(...)
437
428
  attributes = {
438
- concurrency: @guard.limit,
439
429
  size: @resources.size,
440
- limit: @limit,
441
- **@tags,
442
430
  }
443
431
 
444
- @attributes.merge!(@tags) if @tags
432
+ attributes.merge!(@tags) if @tags
445
433
 
446
434
  Traces.trace('async.pool.retire', attributes: attributes) {super}
447
435
  end
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Async
7
7
  module Pool
8
- VERSION = "0.10.0"
8
+ VERSION = "0.10.2"
9
9
  end
10
10
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-pool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -40,7 +40,7 @@ cert_chain:
40
40
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
41
41
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
42
42
  -----END CERTIFICATE-----
43
- date: 2024-10-13 00:00:00.000000000 Z
43
+ date: 2024-11-13 00:00:00.000000000 Z
44
44
  dependencies:
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: async
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  - !ruby/object:Gem::Version
105
105
  version: '0'
106
106
  requirements: []
107
- rubygems_version: 3.5.11
107
+ rubygems_version: 3.5.22
108
108
  signing_key:
109
109
  specification_version: 4
110
110
  summary: A singleplex and multiplex resource pool for implementing robust clients.
metadata.gz.sig CHANGED
Binary file