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)
Sat, Dec 14, 4:01 PM
Unknown Object (File)
Sat, Dec 14, 4:01 PM
Unknown Object (File)
Sat, Dec 14, 4:01 PM
Unknown Object (File)
Sat, Dec 14, 4:01 PM
Unknown Object (File)
Sat, Dec 14, 4:01 PM
Unknown Object (File)
Sat, Dec 14, 3:55 PM
Unknown Object (File)
Fri, Dec 6, 9:55 PM
Unknown Object (File)
Thu, Dec 5, 8:11 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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