evt-message_store 0.8.0.5 → 0.8.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/message_store/get.rb +8 -8
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 065e577d3476a500640a4273d4efb4317d1b1685c017b39570f83385a8dc8c77
4
- data.tar.gz: d13028d7a507148bda0102f6085a48172045d6fbd869d03af4686fe9770cbf37
3
+ metadata.gz: 444230a5140408b2c2563998d91fe282c0e5897211a579ee9a7b4edd58b83a88
4
+ data.tar.gz: f5bf8fe6975a8996da32d4231023e04b91a62f8356cd427193f852bebf520b1a
5
5
  SHA512:
6
- metadata.gz: b8d42c73d3f7b223b68d25885729c7576c15f7617720c6c82eec2f68207f91bedcc56859724b4d2c9d93a3bd5128e0e1fbe37a0823196225fb0086f7eeb5b663
7
- data.tar.gz: 3a445af2490cc86dfab373dae3b2bca6dc5648906acabeda2d5831581521834c0c6bb92812dc744a7f494a75cb8fc3ade84eaf33cc5ba988841216953a4b676b
6
+ metadata.gz: 58e0d4a74efc5b65ab31b3609cd6db331d817bf6142a91ec21eae96af813df2f6fd2143598a29245cda5720b1cc475a1c57f727fbee1b1c140455cf24a540643
7
+ data.tar.gz: bf60ff125d633affa804ab57e8be6df8728b0f3099af551e41f9fad3a43ade1452f99765af0f4dafd1252ce236d21da83315b1fb6f7c967756849caab8705acd
@@ -34,11 +34,11 @@ module MessageStore
34
34
  def call(stream_name=nil, position: nil)
35
35
  position ||= 0
36
36
 
37
- logger.trace(tag: :control) { "Getting (Position: #{position}, Batch Size: #{batch_size}, Stream Name: #{stream_name.inspect})" }
37
+ logger.trace(tag: :get) { "Getting (Position: #{position}, Batch Size: #{batch_size}, Stream Name: #{stream_name.inspect})" }
38
38
 
39
- logger.debug(tags: [:control, :data]) { "Items: \n#{items.pretty_inspect}" }
40
- logger.debug(tag: :control) { "Position: #{position.inspect}" }
41
- logger.debug(tag: :control) { "Batch Size: #{batch_size.inspect}" }
39
+ logger.debug(tag: :data) { "Items: \n#{items.pretty_inspect}" }
40
+ logger.debug(tag: :data) { "Position: #{position.inspect}" }
41
+ logger.debug(tag: :data) { "Batch Size: #{batch_size.inspect}" }
42
42
 
43
43
  unless self.class.category?(stream_name)
44
44
  index = (items.index { |i| i.position >= position })
@@ -46,19 +46,19 @@ module MessageStore
46
46
  index = (items.index { |i| i.global_position >= position })
47
47
  end
48
48
 
49
- logger.debug(tag: :control) { "Index: #{index.inspect}" }
49
+ logger.debug(tag: :data) { "Index: #{index.inspect}" }
50
50
 
51
51
  if index.nil?
52
52
  items = []
53
53
  else
54
54
  range = index..(index + batch_size - 1)
55
- logger.debug(tag: :control) { "Range: #{range.pretty_inspect}" }
55
+ logger.debug(tag: :data) { "Range: #{range.pretty_inspect}" }
56
56
 
57
57
  items = self.items[range]
58
58
  end
59
59
 
60
- logger.info(tags: [:control, :data]) { "Got: \n#{items.pretty_inspect}" }
61
- logger.info(tag: :control) { "Finished getting (Position: #{position}, Stream Name: #{stream_name.inspect})" }
60
+ logger.info(tag: :data) { "Got: \n#{items.pretty_inspect}" }
61
+ logger.info(tag: :get) { "Finished getting (Position: #{position}, Stream Name: #{stream_name.inspect})" }
62
62
 
63
63
  items
64
64
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-message_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0.5
4
+ version: 0.8.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project