@cadenza.io/service 2.0.2 → 2.0.3

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.
package/dist/index.js CHANGED
@@ -4166,8 +4166,20 @@ var GraphSyncController = class _GraphSyncController {
4166
4166
  )
4167
4167
  )
4168
4168
  );
4169
- CadenzaService.throttle("sync_controller.sync_tick", { __syncing: true }, 12e4);
4170
- if (this.isCadenzaDBReady) {
4169
+ console.log("Sync controller init", this.isCadenzaDBReady);
4170
+ if (!this.isCadenzaDBReady) {
4171
+ CadenzaService.throttle(
4172
+ "sync_controller.sync_tick",
4173
+ { __syncing: true },
4174
+ 3e5,
4175
+ true
4176
+ );
4177
+ } else {
4178
+ CadenzaService.throttle(
4179
+ "sync_controller.sync_tick",
4180
+ { __syncing: true },
4181
+ 18e4
4182
+ );
4171
4183
  CadenzaService.schedule("meta.sync_requested", { __syncing: true }, 2e3);
4172
4184
  }
4173
4185
  }