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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd52792a5ae6430a0025ca3e1b2c90d6998f84d1f49570e9bdb34bb63228ff40
4
- data.tar.gz: acb76a318c2fce6577ba3d68401f0a38c44489d36d9cdb210b04a0e76fa4c2ca
3
+ metadata.gz: 5e948e5cd9de823115551813b6f0b9179d93183565c568ccdb5c51826f5d14fe
4
+ data.tar.gz: 4b73bde3e2040519cc4b25e3fcd9b5533d9502ee863025ac310cf029c67e501f
5
5
  SHA512:
6
- metadata.gz: e008b933e6c1c8dc45af43f47775afdc8861d8f9e77ec3b43d4c19d852bd79088925347f545bb60e13e5ee3c7b279aae0d6e0ffb07facf42674a0e8d8cbd4d37
7
- data.tar.gz: 630713a3f420478526325472b281235450f5d000130857d4d2262958fc7c1b2c7444654ef15805380601c7670eb04a329c80b1bc1f187e5979b6cfb72441ce93
6
+ metadata.gz: 0d8298eac44ca51dfdf91379d1bc8289d037b56de627ca66fb51960575dcc0819565bf6121d9c4b71652c22178c0c5562d03ecc19d23567f681cf58283c1e3de
7
+ data.tar.gz: aa4856c2440edfb352d2fd90448e8cb51b078f48f5bd273a4437d274342af74fd3f653392e11d08e20e306ed0791423c6c1bf6da9f1a131c7e3514bea6dc804a
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module Protobuf
2
2
  module Nats
3
- VERSION = "0.10.0"
3
+ VERSION = "0.10.1"
4
4
  end
5
5
  end
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.0
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-05-24 00:00:00.000000000 Z
11
+ date: 2018-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport