Skip to content

Commit 9375c01

Browse files
authored
chore(storage): drop resetStorageMethod, whose last caller was a removed quarantined suite (#8956)
1 parent da553ac commit 9375c01

3 files changed

Lines changed: 0 additions & 10 deletions

File tree

‎apps/sim/lib/core/idempotency/service.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ vi.mock('@/lib/core/storage', () => ({
1414
isRedisStorage: () => true,
1515
isDatabaseStorage: () => false,
1616
requireRedis: () => ({ del: redisDelMock, eval: redisEvalMock }),
17-
resetStorageMethod: () => {},
1817
}))
1918

2019
import { RetryableSetupError } from '@/lib/core/errors/retryable-infrastructure'

‎apps/sim/lib/core/storage/index.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ export {
33
isDatabaseStorage,
44
isRedisStorage,
55
requireRedis,
6-
resetStorageMethod,
76
type StorageMethod,
87
} from './storage'

‎apps/sim/lib/core/storage/storage.ts‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,3 @@ export function requireRedis() {
7070

7171
return redis
7272
}
73-
74-
/**
75-
* Reset the cached storage method.
76-
* Only use for testing purposes.
77-
*/
78-
export function resetStorageMethod(): void {
79-
cachedStorageMethod = null
80-
}

0 commit comments

Comments
 (0)