From 74b60c12276fc431ffa2dc626a2e6e6ddbff04ed Mon Sep 17 00:00:00 2001 From: 404oops Date: Sat, 31 Oct 2026 17:50:48 +0100 Subject: [PATCH] fix(metering): type the array read's retry callback Co-Authored-By: Claude Opus 5.5 --- src/backend/stores/metering/MeteringBufferStore.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/backend/stores/metering/MeteringBufferStore.ts b/src/backend/stores/metering/MeteringBufferStore.ts index e57cb6700..37655ebd1 100644 --- a/src/backend/stores/metering/MeteringBufferStore.ts +++ b/src/backend/stores/metering/MeteringBufferStore.ts @@ -922,11 +922,13 @@ export class MeteringBufferStore extends PuterStore { }); const fetchedValues = fetched as (unknown | null)[]; await Promise.all( - misses.map(async (i, idx) => { + misses.map(async (i, idx): Promise => { const k = keys[i]!; // As in `#readStoreAndBuffer`: a buffer that shrank during // the store read may be counted in both, so read again. - const now = await this.#readBuffered(k).catch(() => null); + const now = await this.#readBuffered(k).catch( + (): null => null, + ); if (now && !sameAmounts(deltas[i]!, now.delta)) { const { stored, buffered } = await this.#readStoreAndBuffer(k);