event_store_subscriptions 1.1.0 → 1.1.2

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: a7e6e16c2a7382f97ae35a90701acbcd6d1ddbb76f3de3d8d91fb4f5a5970301
4
- data.tar.gz: 297942167731aa297bd5d1d036cba81fc8a5b2f050abc5a46c2918ffe43260c3
3
+ metadata.gz: 4fccb243f13092931fcd1f5c27856e70b40a8d0efc1977123ce6952472259e32
4
+ data.tar.gz: 59dc6ef6a476918183445219d2e0baa7a9a9f74b2722647f6fbe9907b7a41854
5
5
  SHA512:
6
- metadata.gz: f5425d9761f330cd9cbabf2b19947709cb75cfecb7a604015fc6c1a8f768ebc97d9d35d87191e14706db7f9bfe2b79fce2a39608cca004116333f80ea7356d95
7
- data.tar.gz: b3e1c417218056c29a85ef135a270296e2683258cc57b49bc19c7e12a7949b8aac2076fc9aa45fbd6c1bc69c4809a77b89b56c68bc91467a6d39a89c0f7228b3
6
+ metadata.gz: d74a26ef335704e025116eac5bfcff32ed5b3f550210005990f19182448b8c47659a86dc1bb96f40a2f36213aa8c2ecadfb845b41643256500e099c8658c419c
7
+ data.tar.gz: 8bcd92a58f4a46f863ecb4943eeeca3136a625efc726a2ce329d695c29f7b8101de2a54f938cd3302aea37070e50360b086e859d36f63e8d07e0600227c4fdd6
@@ -58,6 +58,7 @@ module EventStoreSubscriptions
58
58
  make_atomic def restart
59
59
  return self if runner&.alive?
60
60
 
61
+ self.runner = nil
61
62
  statistic.last_restart_at = Time.now.utc
62
63
  _listen
63
64
  end
@@ -98,8 +99,10 @@ module EventStoreSubscriptions
98
99
  original_result,
99
100
  *process_response_args
100
101
  )
101
- original_handler.call(result) if result
102
- statistic.events_processed += 1
102
+ if result
103
+ original_handler.call(result)
104
+ statistic.events_processed += 1
105
+ end
103
106
  position.update(original_result)
104
107
  end
105
108
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EventStoreSubscriptions
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: event_store_subscriptions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Dzyzenko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-18 00:00:00.000000000 Z
11
+ date: 2022-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: event_store_client