event_store_client 1.2.1 → 1.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23572ade9e7d340341d26d103fc2a330ecfa7df71f9a98a8369061b64b206133
|
4
|
+
data.tar.gz: e8104a10545a460adf71d445d4f203ef347da27793c23f785b03e54908369304
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc01f4661a550f1a6b3bd56b86eff3601a4693e50ceec51dc4f0e5fda63bc4b14bcf27f2da8933d7e5263dbc2ccc490f23e0b3d128b12ae0527c5fd6e51b74b8
|
7
|
+
data.tar.gz: a6968eae108d9964d3ccecc3d82acd28076c03bb78a0a8ab1b2856a858dac9bbacd87607a1271d08424c7755c8e7cc759ef4eefe1c008616afaa326ddeed4749
|
@@ -5,6 +5,8 @@ module EventStoreClient
|
|
5
5
|
FILTER_DEFAULT_MAX = 32
|
6
6
|
FILTER_DEFAULT_CHECKPOINT_INTERVAL_MULTIPLIER = 10000
|
7
7
|
|
8
|
+
include Configuration
|
9
|
+
|
8
10
|
def create_or_load(subscriber, filter: {})
|
9
11
|
filter_options = prepare_filter_options(filter)
|
10
12
|
position = subscription_store.load_all_position(CatchUpSubscription.name(subscriber))
|
@@ -41,10 +43,10 @@ module EventStoreClient
|
|
41
43
|
logger&.info(msg)
|
42
44
|
break
|
43
45
|
end
|
44
|
-
rescue StandardError
|
46
|
+
rescue StandardError => e
|
45
47
|
subscription.position = old_position
|
46
48
|
subscription_store.update_position(subscription)
|
47
|
-
|
49
|
+
config.error_handler&.call(e)
|
48
50
|
end
|
49
51
|
end
|
50
52
|
|