bbk-amqp 1.0.0.105731 → 1.0.0.109994

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/lib/bbk/amqp/utils.rb +3 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 395701e78328d529b984fe2836575d4316da174c424db8a34a536d49e65e969e
4
- data.tar.gz: 3dfa96c9ff17d85d42b937c244a03cce0576ccb78870a1fcc78cc9574132bd67
3
+ metadata.gz: 66f28db2e42bb159e20d67828581f8396cc93699d88729662b78943198e75c6e
4
+ data.tar.gz: 8918688acd752ddf9201e12857ff1f4b66674b8ef8fabc105ab427d8401e19f6
5
5
  SHA512:
6
- metadata.gz: 7e9f0158659ad1a74276007c335f45ed9c0e914888e61c7b40674b2842b22da649c6d360a50c909a49c45ce578f0d5f27f6abce6941edf8ab84db5a3568ff4a8
7
- data.tar.gz: 7d73afde4090357e76f85573864dbcd2b8d68953e5348a620eed5021822eb5bcb9cdebb92309af57a969ede68f1083d7dfe4167fd3dcf262ff13040a3eca3185
6
+ metadata.gz: dcedc95871cb1d6f51750321c4167f05b317d2edbba787f3607c03f70f9d16788b6cdb4cb50c7270af778c4233207abc8a0f800a00276116c0351d7d09102845
7
+ data.tar.gz: 3a732dfba76916ae52b525120093cf31b6219e356ff0db5734d3e3fac3cdde374099e4171963139d6d8242adf0f86b6d94ae7b02beb04fe98a0c302255eefd3c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bbk-amqp (1.0.0.105731)
4
+ bbk-amqp (1.0.0.109994)
5
5
  activesupport (>= 6.0)
6
6
  bbk-utils (> 1.0.1)
7
7
  bunny (>= 2.19.0)
@@ -63,7 +63,7 @@ GEM
63
63
  launchy (2.5.0)
64
64
  addressable (~> 2.7)
65
65
  minitest (5.15.0)
66
- oj (3.13.21)
66
+ oj (3.13.23)
67
67
  parser (3.0.3.2)
68
68
  ast (~> 2.4.1)
69
69
  path_expander (1.1.0)
@@ -22,6 +22,7 @@ module BBK
22
22
  mx.synchronize do
23
23
  if consumed
24
24
  queue.channel.nack(delivery_info.delivery_tag, false, true)
25
+ sleep 0.1
25
26
  break
26
27
  end
27
28
  consumed = true
@@ -43,10 +44,12 @@ module BBK
43
44
  end
44
45
  result = unblocker.pop
45
46
  if result == :timeout
47
+ consumed = true
46
48
  consumer.cancel
47
49
  raise ::Timeout::Error
48
50
  end
49
51
  queue.channel.ack(result[0].delivery_tag)
52
+ sleep 0.2
50
53
  consumer.cancel
51
54
  result
52
55
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbk-amqp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.105731
4
+ version: 1.0.0.109994
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samoylenko Yuri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-27 00:00:00.000000000 Z
11
+ date: 2022-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport