Page MenuHomePhabricator

[web] Move worker database globals to worker-database.js
ClosedPublic

Authored by michal on Mar 14 2024, 4:15 AM.
Tags
None
Referenced Files
F3384068: D11324.id38133.diff
Thu, Nov 28, 7:13 PM
Unknown Object (File)
Mon, Nov 25, 4:37 AM
Unknown Object (File)
Mon, Nov 25, 1:27 AM
Unknown Object (File)
Fri, Nov 8, 10:10 AM
Unknown Object (File)
Wed, Nov 6, 3:05 PM
Unknown Object (File)
Oct 15 2024, 1:49 PM
Unknown Object (File)
Oct 15 2024, 1:49 PM
Unknown Object (File)
Oct 15 2024, 1:48 PM
Subscribers

Details

Summary

Move the sqliteQueryExecutor and dbModule globals to another shared worker js module and expose functions to get/set them. This simplifies the identity client/ olm api as they can just use the global values. Additionaly I find it clearer in the shared worker code when the "set" operation is more explicit and not just an assignment.

Depends on D11236

Test Plan

Check that the database still works, data is persisted.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable