Skip to content

Commit

Permalink
Enable FTS optimizer in production
Browse files Browse the repository at this point in the history
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
  • Loading branch information
automated-signal and indutny-signal committed Mar 6, 2023
1 parent c488b62 commit b56eb64
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ts/services/ftsOptimizer.ts
Expand Up @@ -6,7 +6,6 @@ import { debounce } from 'lodash';
import { SECOND } from '../util/durations';
import { sleep } from '../util/sleep';
import { drop } from '../util/drop';
import { isProduction } from '../util/version';
import dataInterface from '../sql/Client';
import type { FTSOptimizationStateType } from '../sql/Interface';
import * as log from '../logging/log';
Expand All @@ -17,10 +16,6 @@ class FTSOptimizer {
private isRunning = false;

public async run(): Promise<void> {
if (isProduction(window.getVersion())) {
return;
}

if (this.isRunning) {
return;
}
Expand Down

0 comments on commit b56eb64

Please sign in to comment.