splitclient-rb 6.2.0.pre.rc1-java → 6.2.0.pre.rc2-java
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af0eb5122b4d22925739cf2ee3ca0e5b83019061
|
4
|
+
data.tar.gz: 663e004ecf8db44c74da803d35046e7bac73095f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caf860d494159424910eb1a1998ba3c9359f62e41bcf9a6b2bc2487dafce3e4dbce1f387932009d6208bc98523a784dbca1247ce58016471dbdd9314147b6187
|
7
|
+
data.tar.gz: 88fba2e0c02207a1d89288566ae1627bb385e5253fc692c2e6329b7995ba525d7a4e193c6683029f47a19cf431d37fe28a70f8eeb8649cd845233e93129d3702
|
@@ -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
|