Skip to content

Commit 72771fc

Browse files
committed
rename constant from debounce to throttle
1 parent aca8b07 commit 72771fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/store/persistConfig.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Engine, { EngineContext } from '../core/Engine';
1111
import { getPersistentState } from '@metamask/base-controller';
1212

1313
const TIMEOUT = 40000;
14-
const STORAGE_DEBOUNCE_DELAY = 200;
14+
const STORAGE_THROTTLE_DELAY = 200;
1515

1616
const MigratedStorage = {
1717
async getItem(key: string) {
@@ -131,7 +131,7 @@ const persistConfig = {
131131
stateReconciler: autoMergeLevel2, // see "Merge Process" section for details.
132132
migrate: createMigrate(migrations, { debug: false }),
133133
timeout: TIMEOUT,
134-
throttle: STORAGE_DEBOUNCE_DELAY,
134+
throttle: STORAGE_THROTTLE_DELAY,
135135
writeFailHandler: (error: Error) =>
136136
Logger.error(error, { message: 'Error persisting data' }), // Log error if saving state fails
137137
};

0 commit comments

Comments
 (0)