Skip to content

Commit 7179d4b

Browse files
Cleanup
1 parent da7c2a4 commit 7179d4b

File tree

1 file changed

+3
-4
lines changed
  • firebase-firestore/src/main/java/com/google/firebase/firestore/local

1 file changed

+3
-4
lines changed

firebase-firestore/src/main/java/com/google/firebase/firestore/local/LocalStore.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,17 +175,16 @@ public LocalStore(
175175
}
176176

177177
private void initializeUserComponents(User user) {
178+
// TODO(indexing): Add spec tests that test these components change after a user change
178179
indexManager = persistence.getIndexManager(user);
179180
mutationQueue = persistence.getMutationQueue(user, indexManager);
180181
documentOverlayCache = persistence.getDocumentOverlay(user);
181-
182-
// Recreate our LocalDocumentsView using the new MutationQueue.
183182
localDocuments =
184183
new LocalDocumentsView(remoteDocuments, mutationQueue, documentOverlayCache, indexManager);
185-
queryEngine.initialize(localDocuments, indexManager);
186184

187-
// TODO(indexing): Add spec tests that test these components change after a user change
188185
remoteDocuments.setIndexManager(indexManager);
186+
queryEngine.initialize(localDocuments, indexManager);
187+
189188
if (indexBackfiller != null) {
190189
indexBackfiller.setIndexManager(indexManager);
191190
indexBackfiller.setLocalDocumentsView(localDocuments);

0 commit comments

Comments
 (0)