async-pool 0.10.0 → 0.10.1
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/async/pool/controller.rb +5 -13
- data/lib/async/pool/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 003c7bc5ebfd789e4350f68af08301a24628b8782d1e9255ea69e6a92c74198a
|
|
4
|
+
data.tar.gz: 064e1ab27d50b280718157bf8bef400ca0c0850bed547983ae945b78b59c159d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 19ea0dc13e3a20bff67f5f3948187e6dc088acef4fb18a3d57a6c8f7c9d24bd4cf9dbd81128f59c818a9e55b216904e512b99c85667a024d24b7f070831342b8
|
|
7
|
+
data.tar.gz: e39da4c0bc5c38cb7c5a1887976b08a5b0ec4c28195285e4a47b82d609f126326dbf2b3b5267c62dbe3615fd27c4f0a9afc7e07784840173bcde3ad3e652c20f
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
|
@@ -390,11 +390,9 @@ module Async
|
|
|
390
390
|
def create_resource(...)
|
|
391
391
|
attributes = {
|
|
392
392
|
concurrency: @guard.limit,
|
|
393
|
-
size: @resources.size,
|
|
394
|
-
limit: @limit,
|
|
395
393
|
}
|
|
396
394
|
|
|
397
|
-
|
|
395
|
+
attributes.merge!(@tags) if @tags
|
|
398
396
|
|
|
399
397
|
Traces.trace('async.pool.create', attributes: attributes) {super}
|
|
400
398
|
end
|
|
@@ -404,44 +402,38 @@ module Async
|
|
|
404
402
|
size: @resources.size,
|
|
405
403
|
}
|
|
406
404
|
|
|
407
|
-
|
|
405
|
+
attributes.merge!(@tags) if @tags
|
|
408
406
|
|
|
409
407
|
Traces.trace('async.pool.drain', attributes: attributes) {super}
|
|
410
408
|
end
|
|
411
409
|
|
|
412
410
|
def acquire(...)
|
|
413
411
|
attributes = {
|
|
414
|
-
concurrency: @guard.limit,
|
|
415
412
|
size: @resources.size,
|
|
416
413
|
limit: @limit,
|
|
417
414
|
}
|
|
418
415
|
|
|
419
|
-
|
|
416
|
+
attributes.merge!(@tags) if @tags
|
|
420
417
|
|
|
421
418
|
Traces.trace('async.pool.acquire', attributes: attributes) {super}
|
|
422
419
|
end
|
|
423
420
|
|
|
424
421
|
def release(...)
|
|
425
422
|
attributes = {
|
|
426
|
-
concurrency: @guard.limit,
|
|
427
423
|
size: @resources.size,
|
|
428
|
-
limit: @limit,
|
|
429
424
|
}
|
|
430
425
|
|
|
431
|
-
|
|
426
|
+
attributes.merge!(@tags) if @tags
|
|
432
427
|
|
|
433
428
|
Traces.trace('async.pool.release', attributes: attributes) {super}
|
|
434
429
|
end
|
|
435
430
|
|
|
436
431
|
def retire(...)
|
|
437
432
|
attributes = {
|
|
438
|
-
concurrency: @guard.limit,
|
|
439
433
|
size: @resources.size,
|
|
440
|
-
limit: @limit,
|
|
441
|
-
**@tags,
|
|
442
434
|
}
|
|
443
435
|
|
|
444
|
-
|
|
436
|
+
attributes.merge!(@tags) if @tags
|
|
445
437
|
|
|
446
438
|
Traces.trace('async.pool.retire', attributes: attributes) {super}
|
|
447
439
|
end
|
data/lib/async/pool/version.rb
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|