rabbitmq_client 0.0.2 → 0.0.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
  SHA256:
3
- metadata.gz: f1ef09ac95da0ede5b1635fc2c1317f972e41c72868badb5ec79c9b3848d1b7d
4
- data.tar.gz: c2798f711e2995e47b9e46649b04c730a2e7541769b9526498c1087771f6c2e3
3
+ metadata.gz: d2d9a57e2ad5856c1af410391b86ce13159d2f658902080ebfd65779576a874e
4
+ data.tar.gz: 501753ad4dd0fa15552e50e8c2a9e045e46f9dfe4333f497dff2970f6b5d4d88
5
5
  SHA512:
6
- metadata.gz: 7df0e4e90fcf1ae255822730a5162209a69374a12f643e8ac9f0ea0d524f48ad797cdf3132e604bc816bf2a2590fdc77ece185c05a0b80e293501ed62e20312d
7
- data.tar.gz: b5f09649b1a0c4937418bc19d61befe0b60bc74ddef757a684ffd0b14cf22901112b1602ab79badc886205365c7d9288e08a4e8ada68c18a12d7c4113ecfaf87
6
+ metadata.gz: 0f4e1d1de72f482ec925b429e809e0df7e541f1164209470ae664246785d14fc6c0e29ac412d688c409cc989a0dbce467640a63e9d6762d2e0ab156def74e09b
7
+ data.tar.gz: 9a4d74840356a92646dbdd1b5aed0893f6035245e45339cbbe1b685c544952adae1aebad900561945b9282c062967c41de6ab4289231eb6204badb47d0763503
@@ -50,11 +50,13 @@ module RabbitmqClient
50
50
  # default rabbitmq configs
51
51
  # heartbeat_publisher = 0
52
52
  # session_pool = 1
53
+ # session_pool_timeout = 5
53
54
  config_accessor(:session_params, instance_accessor: false) do
54
55
  {
55
56
  heartbeat_publisher: 0,
56
57
  async_publisher: true,
57
- session_pool: 1
58
+ session_pool: 1,
59
+ session_pool_timeout: 5
58
60
  }
59
61
  end
60
62
 
@@ -57,7 +57,8 @@ module RabbitmqClient
57
57
 
58
58
  def create_connection_pool
59
59
  pool_size = @session_params.fetch(:session_pool, 1)
60
- ConnectionPool.new(size: pool_size) do
60
+ pool_timeout = @session_params.fetch(:session_pool_timeout, 5)
61
+ ConnectionPool.new(size: pool_size, timeout: pool_timeout) do
61
62
  Bunny.new(@config[:rabbitmq_url],
62
63
  { logger: RabbitmqClient.logger }.merge(@session_params))
63
64
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # :nodoc:
4
4
  module RabbitmqClient
5
- VERSION = '0.0.2'
5
+ VERSION = '0.0.3'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbitmq_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Al-waleed shihadeh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-14 00:00:00.000000000 Z
11
+ date: 2020-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport