apiotics 0.1.99 → 0.1.100
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 +3 -6
- 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: 62d44cf0a6a144746da74eef89c513853b76236f
|
4
|
+
data.tar.gz: 2fa86199cfe4fe7392cfc347e007d376846707db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64faba1a078d9677239a0701c95eab30944de1aa7d1fc28981887c58ca431a4bd9ddee19d829fdbc65da56b6c5f29e9bf2afc4d7c13e63e35b902657bb71d4da
|
7
|
+
data.tar.gz: 33b4685c362dc35e1fd1ee921ce0871dd95e1bf4be721286c201e861f5c704406e28708e33554c54d70c2822101ccccb5b3209bef0ca665bff1081df42965484
|
data/lib/apiotics/server.rb
CHANGED
@@ -167,6 +167,8 @@ module Apiotics
|
|
167
167
|
heartbeat["interface"] = DateTime.now.to_i.to_s
|
168
168
|
unless Apiotics.configuration.create_heartbeat_error == true
|
169
169
|
heartbeat_msg = heartbeat.to_json
|
170
|
+
else
|
171
|
+
heartbeat_msg = heartbeat
|
170
172
|
end
|
171
173
|
self.send(heartbeat_msg)
|
172
174
|
self.monitor_heartbeat(heartbeat)
|
@@ -185,12 +187,7 @@ module Apiotics
|
|
185
187
|
#puts @heartbeat_state
|
186
188
|
end
|
187
189
|
if @heartbeat_state.length > Apiotics.configuration.max_missed_heartbeats
|
188
|
-
|
189
|
-
raise Apiotics::ConnectionError
|
190
|
-
rescue => e
|
191
|
-
puts e.message
|
192
|
-
raise Apiotics::ConnectionError
|
193
|
-
end
|
190
|
+
raise Apiotics::ConnectionError
|
194
191
|
end
|
195
192
|
end
|
196
193
|
|
data/lib/apiotics/version.rb
CHANGED