splitclient-rb 6.2.0.pre.rc1 → 6.2.0.pre.rc2
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: 5c978237b18e181ce9136e448b8013430b192c0d293b25e637cb7423059d6cfb
|
4
|
+
data.tar.gz: 36e9709a9c998ab2f58e202d1b6759d980b08548a34f700313d1878a61cd1e65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2d85121da0f773abfd1947b8a00c94133d2043ae9913ba72aa324c5ae2dae2d8e021c36c9a1d29f5ecb7e77deeee3677c1c41bb6ce0bd97c5322671ccc91f21
|
7
|
+
data.tar.gz: 5e0e18ee3412d0d53b017abd6251bcfe278a0e1d8d21920ae277a6810bc27acc03ff4949e6bbe0127e042c35e9a781a0c4c3f49eea880cfee87a615e41cc8551
|
@@ -6,7 +6,6 @@ module SplitIoClient
|
|
6
6
|
module Stores
|
7
7
|
class SDKBlocker
|
8
8
|
attr_reader :splits_repository
|
9
|
-
attr_writer :splits_thread, :segments_thread
|
10
9
|
|
11
10
|
def initialize(splits_repository, segments_repository)
|
12
11
|
@splits_repository = splits_repository
|
@@ -34,8 +33,8 @@ module SplitIoClient
|
|
34
33
|
end
|
35
34
|
|
36
35
|
SplitIoClient.configuration.logger.info('SplitIO SDK is ready')
|
37
|
-
|
38
|
-
|
36
|
+
SplitIoClient.configuration.threads[:split_store].run
|
37
|
+
SplitIoClient.configuration.threads[:segment_store].run
|
39
38
|
end
|
40
39
|
|
41
40
|
def ready?
|
@@ -28,7 +28,7 @@ module SplitIoClient
|
|
28
28
|
private
|
29
29
|
|
30
30
|
def segments_thread
|
31
|
-
SplitIoClient.configuration.threads[:segment_store] =
|
31
|
+
SplitIoClient.configuration.threads[:segment_store] = Thread.new do
|
32
32
|
SplitIoClient.configuration.logger.info('Starting segments fetcher service')
|
33
33
|
SplitIoClient.configuration.block_until_ready > 0 ? blocked_store : unblocked_store
|
34
34
|
end
|
@@ -28,7 +28,7 @@ module SplitIoClient
|
|
28
28
|
private
|
29
29
|
|
30
30
|
def splits_thread
|
31
|
-
SplitIoClient.configuration.threads[:split_store] =
|
31
|
+
SplitIoClient.configuration.threads[:split_store] = Thread.new do
|
32
32
|
SplitIoClient.configuration.logger.info('Starting splits fetcher service')
|
33
33
|
loop do
|
34
34
|
store_splits
|