fastly_nsq 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d135e4ea62368b96e679f326fc80985b2b4e33ed
4
- data.tar.gz: 919c882bb3589ccab69c38c79a01317e0f4e5534
3
+ metadata.gz: 3af47b4a7762a8de4b950a4f7cdee29fa4e71c54
4
+ data.tar.gz: 0be3725b061e18b5595ab88257dab5a34bd2c1b5
5
5
  SHA512:
6
- metadata.gz: c818f9865a029c2940c8ef40849d708cdad1bc0b17222379ac7fddb67e08e0e89706f48c3f549a245971d3b3b04d684d3ffb03937d7da69776d1bd9cfbc69d26
7
- data.tar.gz: 691bf6c75ab856a2a156fa846210520c9ea9f94957e28b98b1efb2ad426f79dabd01457a5f89b0ad533de479c505713c019ff9e1a4fd0a815820666c1694aa27
6
+ metadata.gz: 6f3e9b056529f7d7a737406d01795e1c2f9bb69a574fea54fc26caeacdc52320f1730ff815aa525734d0be81dd4bdff7ceff25cf5c28ebfec7a745bffce45279
7
+ data.tar.gz: d08d74e00a7e8402849f467478f35c4deb7c62e2e76d5dc22d54bd2b3c44197ee80ed2e4aacbdf6ed1b51156ce96dd3037d746640f0620eb91aa54ccb741574b
@@ -13,6 +13,10 @@ module FastlyNsq
13
13
  Timeout.timeout(5) do
14
14
  sleep(0.1) until connection.connected?
15
15
  end
16
+ rescue Timeout::Error => error
17
+ logger.error "Producer for #{topic} failed to connect!"
18
+ connection.terminate
19
+ raise error
16
20
  end
17
21
 
18
22
  private
@@ -1,3 +1,3 @@
1
1
  module FastlyNsq
2
- VERSION = '0.9.3'.freeze
2
+ VERSION = '0.9.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastly_nsq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tommy O'Neil
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-01-19 00:00:00.000000000 Z
14
+ date: 2017-04-13 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: awesome_print