disc 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/disc +2 -2
- data/examples/greeter.rb +1 -0
- data/lib/disc/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53fa243a900cc1cd82d6b40b35eb9b358135e418
|
4
|
+
data.tar.gz: 52e5b596f04a49bfe87661949138aeef04decb50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cdb8709ae4946fcd0c90fbe28bed5d16f43073f876ccf6551415360f87df3cccfacd0f07244679dcb3114efb9c98ebd0a44347bc04606c746ad82d3f2dd237d
|
7
|
+
data.tar.gz: f790b52f3421cdb5ebad50577ec1c8646d0c65867acfd46a27e79375e0ec8d1f6bc290a0f8c29e6fea3d16246db99ebc4aaa8d559527ebadb1cac1e1c5181a98
|
data/bin/disc
CHANGED
@@ -7,7 +7,7 @@ Clap.run ARGV,
|
|
7
7
|
"-r" => lambda { |file| require file }
|
8
8
|
|
9
9
|
if defined?(Celluloid)
|
10
|
-
concurrency = ENV.fetch('DISC_CONCURRENCY', '25')
|
10
|
+
concurrency = Integer(ENV.fetch('DISC_CONCURRENCY', '25'))
|
11
11
|
$stdout.puts(
|
12
12
|
"[Notice] Disc running in celluloid mode! Current DISC_CONCURRENCY is\
|
13
13
|
#{ concurrency }."
|
@@ -19,7 +19,7 @@ if defined?(Celluloid)
|
|
19
19
|
# Deprecated as of Celluloid 0.17, but still supported via "backported mode"
|
20
20
|
class Disc::WorkerGroup < Celluloid::SupervisionGroup
|
21
21
|
pool Disc::Worker,
|
22
|
-
size:
|
22
|
+
size: concurrency,
|
23
23
|
as: :worker_pool,
|
24
24
|
args: [{ run: true }]
|
25
25
|
end
|
data/examples/greeter.rb
CHANGED
data/lib/disc/version.rb
CHANGED