Skip to content

Commit 02ab4c5

Browse files
committed
revert unnecessary type annotations per review feedback
1 parent de28e93 commit 02ab4c5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/cloudflare/src/api/durable-objects/queue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class DOQueueHandler extends DurableObject<CloudflareEnv> {
2323
// Ongoing revalidations are deduped by the deduplication id
2424
// Since this is running in waitUntil, we expect the durable object state to persist this during the duration of the revalidation
2525
// TODO: handle incremental cache with only eventual consistency (i.e. KV or R2/D1 with the optional cache layer on top)
26-
ongoingRevalidations: Map<string, Promise<void>> = new Map();
26+
ongoingRevalidations = new Map<string, Promise<void>>();
2727

2828
sql: SqlStorage;
2929

packages/cloudflare/src/api/overrides/queue/memory-queue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const DEFAULT_REVALIDATION_TIMEOUT_MS = 10_000;
1717
export class MemoryQueue implements Queue {
1818
readonly name = "memory-queue";
1919

20-
revalidatedPaths: Set<string> = new Set();
20+
revalidatedPaths = new Set<string>();
2121

2222
constructor(private opts = { revalidationTimeoutMs: DEFAULT_REVALIDATION_TIMEOUT_MS }) {}
2323

0 commit comments

Comments
 (0)