Page MenuHomePhabricator

[web-db] extract worker write requests to a separate condition
ClosedPublic

Authored by kamil on Apr 3 2023, 5:04 AM.
Tags
None
Referenced Files
F3376159: D7288.diff
Tue, Nov 26, 10:24 PM
Unknown Object (File)
Sat, Nov 23, 9:46 AM
Unknown Object (File)
Thu, Nov 7, 8:27 PM
Unknown Object (File)
Wed, Nov 6, 4:21 PM
Unknown Object (File)
Tue, Nov 5, 4:47 AM
Unknown Object (File)
Tue, Nov 5, 4:47 AM
Unknown Object (File)
Mon, Nov 4, 12:14 PM
Unknown Object (File)
Mon, Nov 4, 3:33 AM
Subscribers

Details

Summary

Improving code by extracting common code to separate branch.

Depends on D7186

Test Plan

yarn flow check

Diff Detail

Repository
rCOMM Comm
Branch
db-web-9
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Apr 3 2023, 5:37 AM
tomek added inline comments.
web/database/worker/db-worker.js
207–231

What do you think about having early exit? We can also consider extracting write operations to a separate function that only accepts workerWriteRequests

This revision is now accepted and ready to land.Apr 4 2023, 2:11 AM