Skip to content

Commit a8d8ea6

Browse files
committed
Passed formatting
1 parent 3812a33 commit a8d8ea6

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

packages/database/src/core/Repo.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,9 +475,9 @@ export function repoGetValue(repo: Repo, query: QueryContext): Promise<Node> {
475475
if (query._queryParams.loadsAllData()) {
476476
syncTreeApplyServerOverwrite(repo.serverSyncTree_, query._path, node);
477477
} else {
478-
// Simulate `syncTreeAddEventRegistration` without events/listener setup.
479-
// We do this (along with the syncTreeRemoveEventRegistration` below) so that
480-
// `repoGetValue` results have the same cache effects as initial listeners
478+
// Simulate `syncTreeAddEventRegistration` without events/listener setup.
479+
// We do this (along with the syncTreeRemoveEventRegistration` below) so that
480+
// `repoGetValue` results have the same cache effects as initial listeners
481481
// updates.
482482
syncTreeApplyTaggedQueryOverwrite(
483483
repo.serverSyncTree_,

packages/database/src/core/SyncTree.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -425,12 +425,12 @@ export function syncTreeRemoveEventRegistration(
425425

426426
/**
427427
* This function was added to support non-listener queries,
428-
* specifically for use in repoGetValue. It sets up all the same
429-
* local cache data-structures (SyncPoint + View) that are
430-
* needed for listeners without installing an event registration.
431-
* If `query` is not `loadsAllData`, it will also provision a tag for
432-
* the query so that query results can be merged into the sync
433-
* tree using existing logic for tagged listener queries.
428+
* specifically for use in repoGetValue. It sets up all the same
429+
* local cache data-structures (SyncPoint + View) that are
430+
* needed for listeners without installing an event registration.
431+
* If `query` is not `loadsAllData`, it will also provision a tag for
432+
* the query so that query results can be merged into the sync
433+
* tree using existing logic for tagged listener queries.
434434
*
435435
* @param syncTree - Synctree to add the query to.
436436
* @param query - Query to register

0 commit comments

Comments
 (0)