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
Unknown Object (File)
Sun, Mar 16, 5:10 AM
Unknown Object (File)
Tue, Mar 4, 1:38 PM
Unknown Object (File)
Tue, Mar 4, 1:38 PM
Unknown Object (File)
Tue, Mar 4, 1:38 PM
Unknown Object (File)
Tue, Mar 4, 1:38 PM
Unknown Object (File)
Tue, Mar 4, 1:37 PM
Unknown Object (File)
Tue, Mar 4, 1:31 PM
Unknown Object (File)
Tue, Feb 25, 9:53 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 ↗(On Diff #24573)

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