Enable FTS optimizer in production
This commit is contained in:
parent
546be943ee
commit
30feabd0ee
1 changed files with 0 additions and 5 deletions
|
@ -6,7 +6,6 @@ import { debounce } from 'lodash';
|
||||||
import { SECOND } from '../util/durations';
|
import { SECOND } from '../util/durations';
|
||||||
import { sleep } from '../util/sleep';
|
import { sleep } from '../util/sleep';
|
||||||
import { drop } from '../util/drop';
|
import { drop } from '../util/drop';
|
||||||
import { isProduction } from '../util/version';
|
|
||||||
import dataInterface from '../sql/Client';
|
import dataInterface from '../sql/Client';
|
||||||
import type { FTSOptimizationStateType } from '../sql/Interface';
|
import type { FTSOptimizationStateType } from '../sql/Interface';
|
||||||
import * as log from '../logging/log';
|
import * as log from '../logging/log';
|
||||||
|
@ -17,10 +16,6 @@ class FTSOptimizer {
|
||||||
private isRunning = false;
|
private isRunning = false;
|
||||||
|
|
||||||
public async run(): Promise<void> {
|
public async run(): Promise<void> {
|
||||||
if (isProduction(window.getVersion())) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.isRunning) {
|
if (this.isRunning) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue