apiotics 0.1.97 → 0.1.98
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/apiotics/server.rb +4 -4
- data/lib/apiotics/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: 8f9f261ee5c23fdea1b1ac485fa05c9d7167622b
|
4
|
+
data.tar.gz: e3c9ab0dc302e8e5aa17fe4078cd8de70a6490ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8697cdd9b2230ed3988b51017104844f55cce7a76c143d453658288889c3f6ed9c1f48c15766d2937f1400ec2eb57ced10e3e513ec4933c1dde80bf58479ea3f
|
7
|
+
data.tar.gz: 6ba4b4a67f51e29f64d82fb6e68b80ab80c5ccb39c475d2cdf36e326c7e5e3c61c0dc423fae658224fe27c332db925f1723cb9da3ca10353634d16d55eebc5ac
|
data/lib/apiotics/server.rb
CHANGED
@@ -176,12 +176,12 @@ module Apiotics
|
|
176
176
|
end
|
177
177
|
|
178
178
|
def monitor_heartbeat(heartbeat)
|
179
|
-
if heartbeat["action"]
|
179
|
+
if heartbeat["action"] == "set-request"
|
180
180
|
@heartbeat_state[heartbeat["interface"]] = heartbeat
|
181
|
-
puts @heartbeat_state
|
182
|
-
elsif heartbeat["action"]
|
181
|
+
#puts @heartbeat_state
|
182
|
+
elsif heartbeat["action"] == "set-request-ack"
|
183
183
|
@heartbeat_state.delete(heartbeat["interface"])
|
184
|
-
puts @heartbeat_state
|
184
|
+
#puts @heartbeat_state
|
185
185
|
end
|
186
186
|
if @heartbeat_state.length > Apiotics.configuration.max_missed_heartbeats
|
187
187
|
begin
|
data/lib/apiotics/version.rb
CHANGED