Skip to content

docs(idempotency): correct misleading Awaited prune comment#257

Merged
CryptoJones merged 1 commit into
masterfrom
docs/idempotency-fix-prune-comment
May 19, 2026
Merged

docs(idempotency): correct misleading Awaited prune comment#257
CryptoJones merged 1 commit into
masterfrom
docs/idempotency-fix-prune-comment

Conversation

@CryptoJones
Copy link
Copy Markdown
Owner

Summary

Comment-only fix in app/middleware/idempotency.js.

The inline comment on the prune call claimed "Awaited so we don't pile up overlapping DELETEs under load" — but the call has always been fire-and-forget (.catch(() => {}) with no await). That phrasing has misled readers since the original P3-G commit; one could reasonably read it as either "we ARE awaiting" or "we DON'T await", but neither matches the actual code clearly.

Rephrase to describe the actual behavior: fire-and-forget, errors swallowed in the .catch, indexed lookup makes it cheap. No behavior change.

Test plan

  • npm run lint && npm test — 688 passing
  • Comment-only change

Proudly Made in Nebraska. Go Big Red! 🌽 https://xkcd.com/2347/

The inline comment on the prune call claimed "Awaited so we don't
pile up overlapping DELETEs under load" — but the call has always
been fire-and-forget (`.catch(() => {})` with no await). The
original phrasing led readers to think the request path blocked
on the DELETE.

Rephrase to describe the actual behavior: fire-and-forget, errors
swallowed in the .catch, indexed lookup. Comment-only change; no
behavior change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@CryptoJones CryptoJones merged commit 0bb7776 into master May 19, 2026
3 checks passed
@CryptoJones CryptoJones deleted the docs/idempotency-fix-prune-comment branch May 19, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant