rubypitaya 2.16.0 → 2.17.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90b11b45f712986bf00e347425a7f4f237fd540ba4ab74c6cdb87b5a0fe795d2
|
4
|
+
data.tar.gz: 58ab166182fe804946ac6f42a25f16ca1902ce969112b12ee716083226d4b7cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c06fc55a0ec2749b56658aa3ab579329393e341d789a764966361877c04d46bcd1b48ca2677c8f692115f3f67913b74787264950c80ea3604c60354831d29186
|
7
|
+
data.tar.gz: e5cbfa9e030ecfa0a41bbdd2604f559fd7d8370eae633d13f05857b9f5bcc556b0b9168a232b1a4f329ebad2596dfd46c6d336250832ff75514b688d11f4033c
|
data/lib/rubypitaya/core/main.rb
CHANGED
@@ -141,7 +141,7 @@ module RubyPitaya
|
|
141
141
|
|
142
142
|
def run_nats_connection
|
143
143
|
@nats_connector.connect do |request|
|
144
|
-
start_time_seconds = Time.now.
|
144
|
+
start_time_seconds = Time.now.to_f
|
145
145
|
|
146
146
|
message_route = request[:msg][:route]
|
147
147
|
message_data = request[:msg][:data]
|
@@ -171,9 +171,9 @@ module RubyPitaya
|
|
171
171
|
@postman, @redis_connector.redis,
|
172
172
|
@setup, @config, @bll, @log, params)
|
173
173
|
|
174
|
-
delta_time_seconds = Time.now.
|
174
|
+
delta_time_seconds = ((Time.now.to_f - start_time_seconds) * 1000).round(2)
|
175
175
|
|
176
|
-
@log.info "response [#{delta_time_seconds}
|
176
|
+
@log.info "response [#{delta_time_seconds}ms] -> #{response.to_json}"
|
177
177
|
|
178
178
|
response
|
179
179
|
end
|
data/lib/rubypitaya/version.rb
CHANGED