mirror of
https://github.com/juherr/kill-the-news.git
synced 2026-06-20 22:03:48 +00:00
docs: inline Durable Objects migration TODO in email-processor
This commit is contained in:
@@ -138,6 +138,8 @@ export async function processEmail(
|
||||
// same feed can read stale metadata and produce orphaned KV entries or
|
||||
// duplicate trim deletions. This is an accepted limitation given Cloudflare
|
||||
// KV's eventual-consistency model.
|
||||
// TODO: Migrate feed metadata writes to Cloudflare Durable Objects to serialise
|
||||
// concurrent writes and eliminate this race condition.
|
||||
const feedMetadata = ((rawMetadata as FeedMetadata | null) || {
|
||||
emails: [],
|
||||
}) as FeedMetadata;
|
||||
|
||||
Reference in New Issue
Block a user