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)
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
Unknown Object (File)
Mon, Nov 4, 3:32 AM
Unknown Object (File)
Sat, Nov 2, 3:45 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