mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-04-26 06:15:52 +03:00
[PR #826] [MERGED] perf: use waitUntil for async address activity updates #788
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cloudflare_temp_email#788
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/826
Author: @dreamhunter2333
Created: 2/1/2026
Status: ✅ Merged
Merged: 2/1/2026
Merged by: @dreamhunter2333
Base:
main← Head:feature/email📝 Commits (1)
e9e921dperf: use waitUntil for async address activity updates📊 Changes
10 files changed (+1072 additions, -991 deletions)
View changed files
📝
frontend/package.json(+3 -3)📝
frontend/pnpm-lock.yaml(+557 -563)📝
pages/package.json(+1 -1)📝
vitepress-docs/package.json(+2 -2)📝
vitepress-docs/pnpm-lock.yaml(+174 -180)📝
worker/package.json(+7 -7)📝
worker/pnpm-lock.yaml(+303 -213)📝
worker/src/common.ts(+12 -10)📝
worker/src/mails_api/index.ts(+2 -2)📝
worker/src/user_api/settings.ts(+11 -10)📄 Description
User description
Summary
Use
ctx.waitUntil()to make address activity time updates non-blocking, improving GET request response times.Changes
worker/src/common.ts- ChangeupdateAddressUpdatedAtto sync function usingwaitUntilfor async DB updateworker/src/mails_api/index.ts- RemoveawaitfromupdateAddressUpdatedAtcallsworker/src/user_api/settings.ts- UsewaitUntilfor async DB updatePerformance Improvement
Before: GET request waits for DB UPDATE to complete before responding
After: GET request returns immediately, DB UPDATE runs in background
Affected Endpoints
GET /api/mailsGET /api/settingsGET /user_api/settings🤖 Generated with Claude Code
PR Type
enhancement, dependencies
Description
Improved performance by making database updates non-blocking using
waitUntilUpdated dependencies across multiple packages for better compatibility and performance
Refactored
updateAddressUpdatedAtfunction to be asynchronousRemoved unnecessary
awaitcalls for non-blocking executionDiagram Walkthrough
File Walkthrough
3 files
Refactored address update to use `waitUntil`Removed `await` for non-blocking address updatesRefactored `updateAddressUpdatedAt` to use `waitUntil`5 files
Updated package dependencies for workerUpdated frontend dependenciesUpdated worker dependenciesUpdated wrangler dependency in pages packageUpdated dependencies for Vitepress documentation2 files
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.