sensu-transport 0.0.4 → 0.0.5

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: d6a38035e18fcea44cad21b1aba5594335e3ef30
4
- data.tar.gz: 14eddc18dec551445e6fdd7d6341f807f774e82a
3
+ metadata.gz: 25757d5c1a633408ef5394569b898aa68dd87ea8
4
+ data.tar.gz: 307d4db59e6d57f3dbf74cc4b44c020322821f02
5
5
  SHA512:
6
- metadata.gz: 0d3821c33f596ed82e10d4642d80c48d290842ff2e61c8b1f1dad518056e663280b59a0386139f791296c2733813e52d218b5e6ee079bc06429628929099e866
7
- data.tar.gz: ee7e04f7c3b4c3df7dabf5d2a5ffff42f3b1f99e74f49639db6d4be540ae13da61a00ae4c82fd4eda7af5386e81544bf355e48aab443ee8b67d4d74bd92a6a27
6
+ metadata.gz: e7364481b3b576241e4bbd2f0078e1511dc83ab29ed630defbabc3239c1a282ca10bd4cf159a019b96ec3b161e0fe00980ad23f77db451f37850c1268d4b7cc1
7
+ data.tar.gz: 037e972322a334c8395cdc24f1174f936043c85e2b14567969e2eded9e9e6beebff2b2cac9c4367ab978bd33e29fc1e255df15eecda99d65f107ac0779efd73a
@@ -25,6 +25,9 @@ module Sensu
25
25
  reconnect_callback = Proc.new { reconnect }
26
26
  @connection.on_tcp_connection_loss(&reconnect_callback)
27
27
  @connection.on_skipped_heartbeats(&reconnect_callback)
28
+ @connection.on_recovery do
29
+ @after_reconnect.call
30
+ end
28
31
  setup_channel(options)
29
32
  end
30
33
 
@@ -125,9 +128,6 @@ module Sensu
125
128
  prefetch = options.fetch(:prefetch, 1)
126
129
  end
127
130
  @channel.prefetch(prefetch)
128
- @channel.on_recovery do
129
- @after_reconnect.call
130
- end
131
131
  end
132
132
  end
133
133
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "sensu-transport"
5
- spec.version = "0.0.4"
5
+ spec.version = "0.0.5"
6
6
  spec.authors = ["Sean Porter"]
7
7
  spec.email = ["portertech@gmail.com"]
8
8
  spec.summary = "The Sensu transport abstraction library"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-transport
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Porter