@clonegod/ttd-core 2.0.10 → 2.0.11
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.
|
@@ -28,7 +28,6 @@ class AppConfig extends events_1.default {
|
|
|
28
28
|
return __awaiter(this, void 0, void 0, function* () {
|
|
29
29
|
this.arb_cache = (0, __1.getArbCache)(this.env_args);
|
|
30
30
|
yield this.arb_cache.init();
|
|
31
|
-
this.arb_cache.listen_trade_result(this);
|
|
32
31
|
let common_service_config = yield this.arb_cache.get_common_service();
|
|
33
32
|
if ((0, __1.isEmpty)(common_service_config)) {
|
|
34
33
|
throw new Error(`get_common_service from cache failed! read from cache=${(0, __1.to_json_str)(common_service_config)}`);
|
package/dist/cache/arb_cache.js
CHANGED
|
@@ -39,6 +39,10 @@ class ArbCache {
|
|
|
39
39
|
]);
|
|
40
40
|
this.redis_event_publisher = (0, index_1.getArbEventPublisher)(this);
|
|
41
41
|
(0, index_1.mkdirSync)(path_1.default.join('config', this.chain_id, 'bak').toLowerCase(), true);
|
|
42
|
+
yield Promise.all([
|
|
43
|
+
this.get_token_list_no_cache(),
|
|
44
|
+
this.get_pool_list_no_cache()
|
|
45
|
+
]);
|
|
42
46
|
if (((_a = process.env.APP_NAME) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'config-center') {
|
|
43
47
|
yield this.init_configs();
|
|
44
48
|
}
|