sqs_buffer 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a0c8cf9749690cb9c9e4c6c5820d953ac14ca84
4
- data.tar.gz: e3720645827ea3b42121c75569202befe980ab14
3
+ metadata.gz: bb3184dce6f13c1cccb015fa1216f28447ab2ccd
4
+ data.tar.gz: 017d8e06c46cadfbd0d5a63fcb42f6331f0135d2
5
5
  SHA512:
6
- metadata.gz: c38cea99a166ee02e2bebbdff29e5902d33e3723ec4963225ba970940472af8fbbabfc4299d016f37cf450dba24af604cb91fbf8cc8715ad81be8700404362f4
7
- data.tar.gz: 23fb609ee5687b87df4e74c09c8c1c42e7c91d53563b37d8f1343808ae1e8a12f453fce67b1b1790708b95fa39a9ca07077e9cc3b2604c41409db9c06dde3ff9
6
+ metadata.gz: edd40b89457e8fd617274d4bffae5911973612099778715d19f11e8fba48cabb8d6f09b810b4dcdd7e749452c26364ea0698c77a2bfb754a87173afcdc866dd5
7
+ data.tar.gz: 499b63cb0262ec705aa7a4c2c50d3810399a29ca30d8f370b95072323e86e1cc7ad4602a5650ce6c33bf9b423e24a1588eaeffbb5817d8163523912a63ac8f6e
@@ -9,20 +9,21 @@ module SqsBuffer
9
9
  client = opts.fetch(:client) { |k| missing_key!(k) }
10
10
 
11
11
  @poller = Aws::SQS::QueuePoller.new(@queue_url, client: client)
12
- @skip_delete = opts.fetch(:skip_delete, true)
13
- @max_number_of_messages = opts.fetch(:max_number_of_messages, 10)
14
- @logger = opts.fetch(:logger, Logger.new(STDOUT))
15
- @process_block = Concurrent::MutexAtomicReference.new
12
+ @skip_delete = opts.fetch(:skip_delete, true)
13
+ @max_number_of_messages = opts.fetch(:max_number_of_messages, 10).to_i
14
+ @logger = opts.fetch(:logger, Logger.new(STDOUT))
15
+ @process_block = Concurrent::MutexAtomicReference.new
16
16
  @before_request_block = Concurrent::MutexAtomicReference.new
17
- @process_block = Concurrent::MutexAtomicReference.new
18
- @message_queue = Concurrent::Array.new
19
- @last_process_time = Concurrent::AtomicFixnum.new(Time.now.to_i)
20
- @running = Concurrent::AtomicBoolean.new(false)
17
+ @process_block = Concurrent::MutexAtomicReference.new
18
+ @message_queue = Concurrent::Array.new
19
+ @last_process_time = Concurrent::AtomicFixnum.new(Time.now.to_i)
20
+ @running = Concurrent::AtomicBoolean.new(false)
21
+
21
22
  @max_wait_time = Concurrent::AtomicFixnum.new(
22
- opts.fetch(:max_wait_time, 300)
23
+ opts.fetch(:max_wait_time, 300).to_i
23
24
  )
24
25
  @max_queue_threshold = Concurrent::AtomicFixnum.new(
25
- opts.fetch(:max_queue_threshold, 100)
26
+ opts.fetch(:max_queue_threshold, 100).to_i
26
27
  )
27
28
  configure_before_request_block
28
29
  end
@@ -1,3 +1,3 @@
1
1
  module SqsBuffer
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqs_buffer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Thomas