aboutsummaryrefslogtreecommitdiffstats
path: root/packages/main/src/reactions/synchronizeConfig.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/main/src/reactions/synchronizeConfig.ts')
-rw-r--r--packages/main/src/reactions/synchronizeConfig.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/main/src/reactions/synchronizeConfig.ts b/packages/main/src/reactions/synchronizeConfig.ts
index 9436c16..adbe712 100644
--- a/packages/main/src/reactions/synchronizeConfig.ts
+++ b/packages/main/src/reactions/synchronizeConfig.ts
@@ -21,7 +21,6 @@
21import deepEqual from 'deep-equal'; 21import deepEqual from 'deep-equal';
22import { debounce } from 'lodash-es'; 22import { debounce } from 'lodash-es';
23import { reaction } from 'mobx'; 23import { reaction } from 'mobx';
24import ms from 'ms';
25 24
26import type ConfigRepository from '../infrastructure/config/ConfigRepository'; 25import type ConfigRepository from '../infrastructure/config/ConfigRepository';
27import type SharedStore from '../stores/SharedStore'; 26import type SharedStore from '../stores/SharedStore';
@@ -29,14 +28,14 @@ import type Config from '../stores/config/Config';
29import type Disposer from '../utils/Disposer'; 28import type Disposer from '../utils/Disposer';
30import { getLogger } from '../utils/log'; 29import { getLogger } from '../utils/log';
31 30
32const DEFAULT_CONFIG_DEBOUNCE_TIME = ms('1s'); 31const DEFAULT_CONFIG_DEBOUNCE_TIME_MS = 1000;
33 32
34const log = getLogger('synchronizeConfig'); 33const log = getLogger('synchronizeConfig');
35 34
36export default async function synchronizeConfig( 35export default async function synchronizeConfig(
37 sharedStore: SharedStore, 36 sharedStore: SharedStore,
38 repository: ConfigRepository, 37 repository: ConfigRepository,
39 debounceTime: number = DEFAULT_CONFIG_DEBOUNCE_TIME, 38 debounceTime: number = DEFAULT_CONFIG_DEBOUNCE_TIME_MS,
40): Promise<Disposer> { 39): Promise<Disposer> {
41 let lastConfigOnDisk: Config | undefined; 40 let lastConfigOnDisk: Config | undefined;
42 41