@voidhash/mimic-effect 1.0.0-beta.1 → 1.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +116 -74
- package/dist/ColdStorage.cjs +9 -5
- package/dist/ColdStorage.d.cts.map +1 -1
- package/dist/ColdStorage.d.mts.map +1 -1
- package/dist/ColdStorage.mjs +9 -5
- package/dist/ColdStorage.mjs.map +1 -1
- package/dist/DocumentInstance.cjs +263 -0
- package/dist/DocumentInstance.d.cts +78 -0
- package/dist/DocumentInstance.d.cts.map +1 -0
- package/dist/DocumentInstance.d.mts +78 -0
- package/dist/DocumentInstance.d.mts.map +1 -0
- package/dist/DocumentInstance.mjs +264 -0
- package/dist/DocumentInstance.mjs.map +1 -0
- package/dist/Errors.cjs +10 -1
- package/dist/Errors.d.cts +18 -3
- package/dist/Errors.d.cts.map +1 -1
- package/dist/Errors.d.mts +18 -3
- package/dist/Errors.d.mts.map +1 -1
- package/dist/Errors.mjs +9 -1
- package/dist/Errors.mjs.map +1 -1
- package/dist/HotStorage.cjs +39 -12
- package/dist/HotStorage.d.cts +17 -1
- package/dist/HotStorage.d.cts.map +1 -1
- package/dist/HotStorage.d.mts +17 -1
- package/dist/HotStorage.d.mts.map +1 -1
- package/dist/HotStorage.mjs +39 -12
- package/dist/HotStorage.mjs.map +1 -1
- package/dist/Metrics.cjs +29 -1
- package/dist/Metrics.d.cts +5 -0
- package/dist/Metrics.d.cts.map +1 -1
- package/dist/Metrics.d.mts +5 -0
- package/dist/Metrics.d.mts.map +1 -1
- package/dist/Metrics.mjs +26 -1
- package/dist/Metrics.mjs.map +1 -1
- package/dist/MimicClusterServerEngine.cjs +44 -139
- package/dist/MimicClusterServerEngine.d.cts.map +1 -1
- package/dist/MimicClusterServerEngine.d.mts +1 -1
- package/dist/MimicClusterServerEngine.d.mts.map +1 -1
- package/dist/MimicClusterServerEngine.mjs +46 -141
- package/dist/MimicClusterServerEngine.mjs.map +1 -1
- package/dist/MimicServer.cjs +20 -20
- package/dist/MimicServer.d.cts.map +1 -1
- package/dist/MimicServer.d.mts.map +1 -1
- package/dist/MimicServer.mjs +20 -20
- package/dist/MimicServer.mjs.map +1 -1
- package/dist/MimicServerEngine.cjs +92 -11
- package/dist/MimicServerEngine.d.cts +12 -4
- package/dist/MimicServerEngine.d.cts.map +1 -1
- package/dist/MimicServerEngine.d.mts +12 -4
- package/dist/MimicServerEngine.d.mts.map +1 -1
- package/dist/MimicServerEngine.mjs +94 -13
- package/dist/MimicServerEngine.mjs.map +1 -1
- package/dist/PresenceManager.cjs +5 -5
- package/dist/PresenceManager.d.cts.map +1 -1
- package/dist/PresenceManager.d.mts.map +1 -1
- package/dist/PresenceManager.mjs +5 -5
- package/dist/PresenceManager.mjs.map +1 -1
- package/dist/Protocol.d.cts +1 -1
- package/dist/Protocol.d.mts +1 -1
- package/dist/Types.d.cts +9 -2
- package/dist/Types.d.cts.map +1 -1
- package/dist/Types.d.mts +9 -2
- package/dist/Types.d.mts.map +1 -1
- package/dist/index.cjs +5 -6
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +3 -3
- package/dist/testing/ColdStorageTestSuite.cjs +508 -0
- package/dist/testing/ColdStorageTestSuite.d.cts +36 -0
- package/dist/testing/ColdStorageTestSuite.d.cts.map +1 -0
- package/dist/testing/ColdStorageTestSuite.d.mts +36 -0
- package/dist/testing/ColdStorageTestSuite.d.mts.map +1 -0
- package/dist/testing/ColdStorageTestSuite.mjs +508 -0
- package/dist/testing/ColdStorageTestSuite.mjs.map +1 -0
- package/dist/testing/FailingStorage.cjs +162 -0
- package/dist/testing/FailingStorage.d.cts +43 -0
- package/dist/testing/FailingStorage.d.cts.map +1 -0
- package/dist/testing/FailingStorage.d.mts +43 -0
- package/dist/testing/FailingStorage.d.mts.map +1 -0
- package/dist/testing/FailingStorage.mjs +163 -0
- package/dist/testing/FailingStorage.mjs.map +1 -0
- package/dist/testing/HotStorageTestSuite.cjs +820 -0
- package/dist/testing/HotStorageTestSuite.d.cts +42 -0
- package/dist/testing/HotStorageTestSuite.d.cts.map +1 -0
- package/dist/testing/HotStorageTestSuite.d.mts +42 -0
- package/dist/testing/HotStorageTestSuite.d.mts.map +1 -0
- package/dist/testing/HotStorageTestSuite.mjs +820 -0
- package/dist/testing/HotStorageTestSuite.mjs.map +1 -0
- package/dist/testing/StorageIntegrationTestSuite.cjs +487 -0
- package/dist/testing/StorageIntegrationTestSuite.d.cts +37 -0
- package/dist/testing/StorageIntegrationTestSuite.d.cts.map +1 -0
- package/dist/testing/StorageIntegrationTestSuite.d.mts +37 -0
- package/dist/testing/StorageIntegrationTestSuite.d.mts.map +1 -0
- package/dist/testing/StorageIntegrationTestSuite.mjs +487 -0
- package/dist/testing/StorageIntegrationTestSuite.mjs.map +1 -0
- package/dist/testing/assertions.cjs +117 -0
- package/dist/testing/assertions.mjs +112 -0
- package/dist/testing/assertions.mjs.map +1 -0
- package/dist/testing/index.cjs +14 -0
- package/dist/testing/index.d.cts +6 -0
- package/dist/testing/index.d.mts +6 -0
- package/dist/testing/index.mjs +7 -0
- package/dist/testing/types.cjs +15 -0
- package/dist/testing/types.d.cts +90 -0
- package/dist/testing/types.d.cts.map +1 -0
- package/dist/testing/types.d.mts +90 -0
- package/dist/testing/types.d.mts.map +1 -0
- package/dist/testing/types.mjs +16 -0
- package/dist/testing/types.mjs.map +1 -0
- package/package.json +8 -3
- package/src/ColdStorage.ts +21 -12
- package/src/DocumentInstance.ts +527 -0
- package/src/Errors.ts +15 -1
- package/src/HotStorage.ts +115 -24
- package/src/Metrics.ts +30 -0
- package/src/MimicClusterServerEngine.ts +120 -275
- package/src/MimicServer.ts +83 -75
- package/src/MimicServerEngine.ts +230 -30
- package/src/PresenceManager.ts +44 -34
- package/src/Types.ts +9 -2
- package/src/index.ts +5 -35
- package/src/testing/ColdStorageTestSuite.ts +589 -0
- package/src/testing/FailingStorage.ts +338 -0
- package/src/testing/HotStorageTestSuite.ts +1105 -0
- package/src/testing/StorageIntegrationTestSuite.ts +736 -0
- package/src/testing/assertions.ts +188 -0
- package/src/testing/index.ts +83 -0
- package/src/testing/types.ts +100 -0
- package/tests/ColdStorage.test.ts +8 -120
- package/tests/DocumentInstance.test.ts +669 -0
- package/tests/HotStorage.test.ts +7 -126
- package/tests/StorageIntegration.test.ts +259 -0
- package/tsdown.config.ts +1 -1
- package/dist/DocumentManager.cjs +0 -229
- package/dist/DocumentManager.d.cts +0 -59
- package/dist/DocumentManager.d.cts.map +0 -1
- package/dist/DocumentManager.d.mts +0 -59
- package/dist/DocumentManager.d.mts.map +0 -1
- package/dist/DocumentManager.mjs +0 -227
- package/dist/DocumentManager.mjs.map +0 -1
- package/src/DocumentManager.ts +0 -506
- package/tests/DocumentManager.test.ts +0 -335
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @voidhash/mimic-effect/testing - FailingStorage
|
|
3
|
+
*
|
|
4
|
+
* Mock storage implementations that simulate failures for testing error handling.
|
|
5
|
+
* Use these to verify that your application correctly handles storage unavailability.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import { FailingStorage } from "@voidhash/mimic-effect/testing";
|
|
10
|
+
*
|
|
11
|
+
* // Create a ColdStorage that fails on load
|
|
12
|
+
* const failingCold = FailingStorage.makeColdStorage({ failLoad: true });
|
|
13
|
+
*
|
|
14
|
+
* // Create a HotStorage that fails after 3 successful appends
|
|
15
|
+
* const failingHot = FailingStorage.makeHotStorage({ failAfterN: 3, failAppend: true });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
import { Effect, Layer, Ref, HashMap } from "effect";
|
|
19
|
+
import { ColdStorageTag, type ColdStorage } from "../ColdStorage";
|
|
20
|
+
import { HotStorageTag, type HotStorage } from "../HotStorage";
|
|
21
|
+
import { ColdStorageError, HotStorageError, WalVersionGapError } from "../Errors";
|
|
22
|
+
import type { StoredDocument, WalEntry } from "../Types";
|
|
23
|
+
|
|
24
|
+
// =============================================================================
|
|
25
|
+
// Configuration Types
|
|
26
|
+
// =============================================================================
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Configuration for failing ColdStorage
|
|
30
|
+
*/
|
|
31
|
+
export interface FailingColdStorageConfig {
|
|
32
|
+
/** Fail load operations */
|
|
33
|
+
readonly failLoad?: boolean;
|
|
34
|
+
/** Fail save operations */
|
|
35
|
+
readonly failSave?: boolean;
|
|
36
|
+
/** Fail delete operations */
|
|
37
|
+
readonly failDelete?: boolean;
|
|
38
|
+
/** Fail after N successful operations (total across all operation types) */
|
|
39
|
+
readonly failAfterN?: number;
|
|
40
|
+
/** Custom error message */
|
|
41
|
+
readonly errorMessage?: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Configuration for failing HotStorage
|
|
46
|
+
*/
|
|
47
|
+
export interface FailingHotStorageConfig {
|
|
48
|
+
/** Fail append operations */
|
|
49
|
+
readonly failAppend?: boolean;
|
|
50
|
+
/** Fail getEntries operations */
|
|
51
|
+
readonly failGetEntries?: boolean;
|
|
52
|
+
/** Fail truncate operations */
|
|
53
|
+
readonly failTruncate?: boolean;
|
|
54
|
+
/** Fail after N successful operations (total across all operation types) */
|
|
55
|
+
readonly failAfterN?: number;
|
|
56
|
+
/** Custom error message */
|
|
57
|
+
readonly errorMessage?: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// =============================================================================
|
|
61
|
+
// Failing ColdStorage
|
|
62
|
+
// =============================================================================
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Create a ColdStorage layer that simulates failures.
|
|
66
|
+
* Wraps an in-memory storage and fails according to configuration.
|
|
67
|
+
*/
|
|
68
|
+
export const makeColdStorage = (
|
|
69
|
+
config: FailingColdStorageConfig = {}
|
|
70
|
+
): Layer.Layer<ColdStorageTag> =>
|
|
71
|
+
Layer.effect(
|
|
72
|
+
ColdStorageTag,
|
|
73
|
+
Effect.gen(function* () {
|
|
74
|
+
const store = yield* Ref.make(HashMap.empty<string, StoredDocument>());
|
|
75
|
+
const operationCount = yield* Ref.make(0);
|
|
76
|
+
|
|
77
|
+
const errorMessage = config.errorMessage ?? "Simulated storage failure";
|
|
78
|
+
|
|
79
|
+
const shouldFail = (operation: "load" | "save" | "delete") =>
|
|
80
|
+
Effect.gen(function* () {
|
|
81
|
+
// Check if this specific operation should fail
|
|
82
|
+
const opFails =
|
|
83
|
+
(operation === "load" && config.failLoad) ||
|
|
84
|
+
(operation === "save" && config.failSave) ||
|
|
85
|
+
(operation === "delete" && config.failDelete);
|
|
86
|
+
|
|
87
|
+
// If failAfterN is set, count operations first
|
|
88
|
+
if (config.failAfterN !== undefined) {
|
|
89
|
+
const count = yield* Ref.get(operationCount);
|
|
90
|
+
yield* Ref.update(operationCount, (n) => n + 1);
|
|
91
|
+
|
|
92
|
+
// Only start failing after N successful operations
|
|
93
|
+
if (count < config.failAfterN) {
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
96
|
+
// After N operations, fail if the specific op flag is set
|
|
97
|
+
return opFails;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// No failAfterN - fail immediately if op flag is set
|
|
101
|
+
return opFails;
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
const storage: ColdStorage = {
|
|
105
|
+
load: (documentId) =>
|
|
106
|
+
Effect.gen(function* () {
|
|
107
|
+
const fail = yield* shouldFail("load");
|
|
108
|
+
if (fail) {
|
|
109
|
+
return yield* Effect.fail(
|
|
110
|
+
new ColdStorageError({
|
|
111
|
+
documentId,
|
|
112
|
+
operation: "load",
|
|
113
|
+
cause: new Error(errorMessage),
|
|
114
|
+
})
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
const current = yield* Ref.get(store);
|
|
119
|
+
const doc = HashMap.get(current, documentId);
|
|
120
|
+
return doc._tag === "Some" ? doc.value : undefined;
|
|
121
|
+
}),
|
|
122
|
+
|
|
123
|
+
save: (documentId, document) =>
|
|
124
|
+
Effect.gen(function* () {
|
|
125
|
+
const fail = yield* shouldFail("save");
|
|
126
|
+
if (fail) {
|
|
127
|
+
return yield* Effect.fail(
|
|
128
|
+
new ColdStorageError({
|
|
129
|
+
documentId,
|
|
130
|
+
operation: "save",
|
|
131
|
+
cause: new Error(errorMessage),
|
|
132
|
+
})
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
yield* Ref.update(store, (map) =>
|
|
137
|
+
HashMap.set(map, documentId, document)
|
|
138
|
+
);
|
|
139
|
+
}),
|
|
140
|
+
|
|
141
|
+
delete: (documentId) =>
|
|
142
|
+
Effect.gen(function* () {
|
|
143
|
+
const fail = yield* shouldFail("delete");
|
|
144
|
+
if (fail) {
|
|
145
|
+
return yield* Effect.fail(
|
|
146
|
+
new ColdStorageError({
|
|
147
|
+
documentId,
|
|
148
|
+
operation: "delete",
|
|
149
|
+
cause: new Error(errorMessage),
|
|
150
|
+
})
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
yield* Ref.update(store, (map) => HashMap.remove(map, documentId));
|
|
155
|
+
}),
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
return storage;
|
|
159
|
+
})
|
|
160
|
+
);
|
|
161
|
+
|
|
162
|
+
// =============================================================================
|
|
163
|
+
// Failing HotStorage
|
|
164
|
+
// =============================================================================
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Create a HotStorage layer that simulates failures.
|
|
168
|
+
* Wraps an in-memory storage and fails according to configuration.
|
|
169
|
+
*/
|
|
170
|
+
export const makeHotStorage = (
|
|
171
|
+
config: FailingHotStorageConfig = {}
|
|
172
|
+
): Layer.Layer<HotStorageTag> =>
|
|
173
|
+
Layer.effect(
|
|
174
|
+
HotStorageTag,
|
|
175
|
+
Effect.gen(function* () {
|
|
176
|
+
const store = yield* Ref.make(HashMap.empty<string, WalEntry[]>());
|
|
177
|
+
const operationCount = yield* Ref.make(0);
|
|
178
|
+
|
|
179
|
+
const errorMessage = config.errorMessage ?? "Simulated storage failure";
|
|
180
|
+
|
|
181
|
+
const shouldFail = (operation: "append" | "getEntries" | "truncate") =>
|
|
182
|
+
Effect.gen(function* () {
|
|
183
|
+
// Check if this specific operation should fail
|
|
184
|
+
const opFails =
|
|
185
|
+
(operation === "append" && config.failAppend) ||
|
|
186
|
+
(operation === "getEntries" && config.failGetEntries) ||
|
|
187
|
+
(operation === "truncate" && config.failTruncate);
|
|
188
|
+
|
|
189
|
+
// If failAfterN is set, count operations first
|
|
190
|
+
if (config.failAfterN !== undefined) {
|
|
191
|
+
const count = yield* Ref.get(operationCount);
|
|
192
|
+
yield* Ref.update(operationCount, (n) => n + 1);
|
|
193
|
+
|
|
194
|
+
// Only start failing after N successful operations
|
|
195
|
+
if (count < config.failAfterN) {
|
|
196
|
+
return false;
|
|
197
|
+
}
|
|
198
|
+
// After N operations, fail if the specific op flag is set
|
|
199
|
+
return opFails;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// No failAfterN - fail immediately if op flag is set
|
|
203
|
+
return opFails;
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
const storage: HotStorage = {
|
|
207
|
+
append: (documentId, entry) =>
|
|
208
|
+
Effect.gen(function* () {
|
|
209
|
+
const fail = yield* shouldFail("append");
|
|
210
|
+
if (fail) {
|
|
211
|
+
return yield* Effect.fail(
|
|
212
|
+
new HotStorageError({
|
|
213
|
+
documentId,
|
|
214
|
+
operation: "append",
|
|
215
|
+
cause: new Error(errorMessage),
|
|
216
|
+
})
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
yield* Ref.update(store, (map) => {
|
|
221
|
+
const current = HashMap.get(map, documentId);
|
|
222
|
+
const entries = current._tag === "Some" ? current.value : [];
|
|
223
|
+
return HashMap.set(map, documentId, [...entries, entry]);
|
|
224
|
+
});
|
|
225
|
+
}),
|
|
226
|
+
|
|
227
|
+
appendWithCheck: (documentId, entry, expectedVersion) =>
|
|
228
|
+
Effect.gen(function* () {
|
|
229
|
+
const fail = yield* shouldFail("append");
|
|
230
|
+
if (fail) {
|
|
231
|
+
return yield* Effect.fail(
|
|
232
|
+
new HotStorageError({
|
|
233
|
+
documentId,
|
|
234
|
+
operation: "appendWithCheck",
|
|
235
|
+
cause: new Error(errorMessage),
|
|
236
|
+
})
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
type CheckResult =
|
|
241
|
+
| { type: "ok" }
|
|
242
|
+
| { type: "gap"; lastVersion: number | undefined };
|
|
243
|
+
|
|
244
|
+
const result: CheckResult = yield* Ref.modify(store, (map): [CheckResult, HashMap.HashMap<string, WalEntry[]>] => {
|
|
245
|
+
const existing = HashMap.get(map, documentId);
|
|
246
|
+
const entries = existing._tag === "Some" ? existing.value : [];
|
|
247
|
+
|
|
248
|
+
const lastVersion = entries.length > 0
|
|
249
|
+
? Math.max(...entries.map((e) => e.version))
|
|
250
|
+
: 0;
|
|
251
|
+
|
|
252
|
+
if (expectedVersion === 1) {
|
|
253
|
+
if (lastVersion >= 1) {
|
|
254
|
+
return [{ type: "gap", lastVersion }, map];
|
|
255
|
+
}
|
|
256
|
+
} else {
|
|
257
|
+
if (lastVersion !== expectedVersion - 1) {
|
|
258
|
+
return [{ type: "gap", lastVersion: lastVersion > 0 ? lastVersion : undefined }, map];
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
return [
|
|
263
|
+
{ type: "ok" },
|
|
264
|
+
HashMap.set(map, documentId, [...entries, entry]),
|
|
265
|
+
];
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
if (result.type === "gap") {
|
|
269
|
+
return yield* Effect.fail(
|
|
270
|
+
new WalVersionGapError({
|
|
271
|
+
documentId,
|
|
272
|
+
expectedVersion,
|
|
273
|
+
actualPreviousVersion: result.lastVersion,
|
|
274
|
+
})
|
|
275
|
+
);
|
|
276
|
+
}
|
|
277
|
+
}),
|
|
278
|
+
|
|
279
|
+
getEntries: (documentId, sinceVersion) =>
|
|
280
|
+
Effect.gen(function* () {
|
|
281
|
+
const fail = yield* shouldFail("getEntries");
|
|
282
|
+
if (fail) {
|
|
283
|
+
return yield* Effect.fail(
|
|
284
|
+
new HotStorageError({
|
|
285
|
+
documentId,
|
|
286
|
+
operation: "getEntries",
|
|
287
|
+
cause: new Error(errorMessage),
|
|
288
|
+
})
|
|
289
|
+
);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
const current = yield* Ref.get(store);
|
|
293
|
+
const existing = HashMap.get(current, documentId);
|
|
294
|
+
const entries = existing._tag === "Some" ? existing.value : [];
|
|
295
|
+
|
|
296
|
+
return entries
|
|
297
|
+
.filter((e) => e.version > sinceVersion)
|
|
298
|
+
.sort((a, b) => a.version - b.version);
|
|
299
|
+
}),
|
|
300
|
+
|
|
301
|
+
truncate: (documentId, upToVersion) =>
|
|
302
|
+
Effect.gen(function* () {
|
|
303
|
+
const fail = yield* shouldFail("truncate");
|
|
304
|
+
if (fail) {
|
|
305
|
+
return yield* Effect.fail(
|
|
306
|
+
new HotStorageError({
|
|
307
|
+
documentId,
|
|
308
|
+
operation: "truncate",
|
|
309
|
+
cause: new Error(errorMessage),
|
|
310
|
+
})
|
|
311
|
+
);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
yield* Ref.update(store, (map) => {
|
|
315
|
+
const existing = HashMap.get(map, documentId);
|
|
316
|
+
if (existing._tag === "None") {
|
|
317
|
+
return map;
|
|
318
|
+
}
|
|
319
|
+
const filtered = existing.value.filter(
|
|
320
|
+
(e) => e.version > upToVersion
|
|
321
|
+
);
|
|
322
|
+
return HashMap.set(map, documentId, filtered);
|
|
323
|
+
});
|
|
324
|
+
}),
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
return storage;
|
|
328
|
+
})
|
|
329
|
+
);
|
|
330
|
+
|
|
331
|
+
// =============================================================================
|
|
332
|
+
// Export Namespace
|
|
333
|
+
// =============================================================================
|
|
334
|
+
|
|
335
|
+
export const FailingStorage = {
|
|
336
|
+
makeColdStorage,
|
|
337
|
+
makeHotStorage,
|
|
338
|
+
};
|