logjam_agent 0.19.2 → 0.19.3

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
  SHA1:
3
- metadata.gz: 3e9d6b9f04d490d4972525d48260a3615ac025f7
4
- data.tar.gz: 57eb3ff05b85e938cbc311bb3129f04ac917e2c8
3
+ metadata.gz: 1634e5c22844025d52a1a2e26e95ed219cc935b5
4
+ data.tar.gz: 9612717c779312008965b7401e7f13f241b7c710
5
5
  SHA512:
6
- metadata.gz: 171dbc3e7dcee9784ad8ce9a24b2bc09c879f96c5e7703dc415ea5be771a5ea88afdcee5098ed323331a8d15028f7287a428983cb3e610f1ba873b31bc1dec11
7
- data.tar.gz: 379fb53d4e360366f5b9e43994c0519b76b680db11099eebdfa9bd208d200316f32167b9741fa5bf83cadf3af48cc33740612f99b1ba412f293521004359e0a8
6
+ metadata.gz: f9abd9d795fa18d84f0baa1142967922e44f130cf607ac4b63f23ccd2e81c570455d5e40b21d98ffa54b396ba44a6baddf2d803f24cea4dab9eb2128da192a90
7
+ data.tar.gz: 1d6d570cfc85e36356cf8b62ef94be560e6319aea29d00ea947641e0ea5829f50aebdd6a0e530deee296a08d165a54b335aee32078aa4578a536f18007b7e737
@@ -1,3 +1,3 @@
1
1
  module LogjamAgent
2
- VERSION = "0.19.2"
2
+ VERSION = "0.19.3"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  module LogjamAgent
2
2
  class ZMQForwarder
3
- attr_reader :app, :env, :connection_specs
3
+ attr_reader :app, :env
4
4
 
5
5
  include Util
6
6
 
@@ -10,9 +10,6 @@ module LogjamAgent
10
10
  @env = args[1] || LogjamAgent.environment_name
11
11
  @app_env = "#{@app}-#{@env}"
12
12
  @config = default_options.merge!(opts)
13
- @connection_specs = @config[:host].split(',').map do |host|
14
- augment_connection_spec(host, @config[:port])
15
- end
16
13
  @sequence = 0
17
14
  end
18
15
 
@@ -25,6 +22,12 @@ module LogjamAgent
25
22
  }
26
23
  end
27
24
 
25
+ def connection_specs
26
+ @connection_specs ||= @config[:host].split(',').map do |host|
27
+ augment_connection_spec(host, @config[:port])
28
+ end
29
+ end
30
+
28
31
  @@mutex = Mutex.new
29
32
  @@zmq_context = nil
30
33
 
@@ -46,7 +49,7 @@ module LogjamAgent
46
49
  socket = self.class.context.socket(ZMQ::PUSH)
47
50
  socket.setsockopt(ZMQ::LINGER, @config[:linger])
48
51
  socket.setsockopt(ZMQ::SNDHWM, @config[:snd_hwm])
49
- @connection_specs.each do |spec|
52
+ connection_specs.each do |spec|
50
53
  socket.connect(spec)
51
54
  end
52
55
  at_exit { reset }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logjam_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.2
4
+ version: 0.19.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Kaes