protobuf-nats 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/protobuf/nats/server.rb +4 -2
- data/lib/protobuf/nats/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e948e5cd9de823115551813b6f0b9179d93183565c568ccdb5c51826f5d14fe
|
4
|
+
data.tar.gz: 4b73bde3e2040519cc4b25e3fcd9b5533d9502ee863025ac310cf029c67e501f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d8298eac44ca51dfdf91379d1bc8289d037b56de627ca66fb51960575dcc0819565bf6121d9c4b71652c22178c0c5562d03ecc19d23567f681cf58283c1e3de
|
7
|
+
data.tar.gz: aa4856c2440edfb352d2fd90448e8cb51b078f48f5bd273a4437d274342af74fd3f653392e11d08e20e306ed0791423c6c1bf6da9f1a131c7e3514bea6dc804a
|
data/lib/protobuf/nats/server.rb
CHANGED
@@ -12,6 +12,8 @@ module Protobuf
|
|
12
12
|
|
13
13
|
attr_reader :nats, :thread_pool, :subscriptions
|
14
14
|
|
15
|
+
MILLISECOND = 1000
|
16
|
+
|
15
17
|
def initialize(options)
|
16
18
|
@options = options
|
17
19
|
@processing_requests = true
|
@@ -52,7 +54,7 @@ module Protobuf
|
|
52
54
|
# Instrument the thread pool time-to-execute duration.
|
53
55
|
processed_at = ::Time.now
|
54
56
|
::ActiveSupport::Notifications.instrument("server.thread_pool_execution_delay.protobuf-nats",
|
55
|
-
(processed_at - enqueued_at))
|
57
|
+
(processed_at - enqueued_at) * MILLISECOND)
|
56
58
|
|
57
59
|
# Process request.
|
58
60
|
response_data = handle_request(request_data, 'server' => @server)
|
@@ -64,7 +66,7 @@ module Protobuf
|
|
64
66
|
# Instrument the request duration.
|
65
67
|
completed_at = ::Time.now
|
66
68
|
::ActiveSupport::Notifications.instrument("server.request_duration.protobuf-nats",
|
67
|
-
(completed_at - enqueued_at))
|
69
|
+
(completed_at - enqueued_at) * MILLISECOND)
|
68
70
|
end
|
69
71
|
end
|
70
72
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protobuf-nats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Dewitt
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|