Skip to content

Commit

Permalink
Merge pull request #378 from statsig-io/fix-sync-error
Browse files Browse the repository at this point in the history
Don't Throw Sync Error if Sync Disabled
  • Loading branch information
sroyal-statsig authored Dec 6, 2023
2 parents 4b2e612 + 4429196 commit 69239df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/SpecStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ export default class SpecStore {
const idListsSyncTimerInactive =
this.idListsSyncTimerLastActiveTime <
Date.now() - Math.max(SYNC_OUTDATED_MAX, this.idListsSyncInterval);
if (!rulesetsSyncTimerInactive && !idListsSyncTimerInactive) {
if (
(!rulesetsSyncTimerInactive || this.disableRulesetsSync) &&
(!idListsSyncTimerInactive || this.disableIdListsSync)
) {
return null;
}
let message = '';
Expand Down

0 comments on commit 69239df

Please sign in to comment.