blackstack_commons 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/functions.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: f88281744398cfc4f5e1aa8b2e5ce4ff2550b91d
|
4
|
+
data.tar.gz: 28991e32d50b5a3078f59f8e437e53e837235872
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5785a4919841975997acd590aaf09668c73e2faee0ee86d8e05d1cd6d754e887f889fe2282d2cf39678db77b2c74a543356c07adee441dbfcb2b4fb0b9bfa3f8
|
7
|
+
data.tar.gz: e3a82ac1b18d38f4037a2e7c588d117f00a80d3dc2dc143981b6a13d0bb4cbc3bdb0c281bda4155ec9762b42f016513b2e052437e34d00ac1e1e9aac18c988c2
|
data/lib/functions.rb
CHANGED
@@ -482,7 +482,7 @@ module BlackStack
|
|
482
482
|
# ssl_verify_mode: you can disabele SSL verification here.
|
483
483
|
# max_channels: this method use lockfiles to prevent an excesive number of API calls from each datacenter. There is not allowed more simultaneous calls than max_channels.
|
484
484
|
# TODO: setup max_simultaneus_calls in the configurtion file.
|
485
|
-
def self.call_post(url, params = {}, ssl_verify_mode=BlackStack::Netting::DEFAULT_SSL_VERIFY_MODE, max_channels=
|
485
|
+
def self.call_post(url, params = {}, ssl_verify_mode=BlackStack::Netting::DEFAULT_SSL_VERIFY_MODE, max_channels=1)
|
486
486
|
# build the lockfile name
|
487
487
|
x = rand(max_channels.to_i)
|
488
488
|
lockfilename = "./apicall.channel_#{x.to_s}.lock"
|