Skip to content

Commit 6bedde4

Browse files
committed
Remove unused QueryView.resumeToken
1 parent 2051b1a commit 6bedde4

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

packages/firestore/src/core/sync_engine.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,6 @@ class QueryView {
7777
* stream to identify this query.
7878
*/
7979
public targetId: TargetId,
80-
/**
81-
* An identifier from the datastore backend that indicates the last state
82-
* of the results that was received. This can be used to indicate where
83-
* to continue receiving new doc changes for the query.
84-
*/
85-
public resumeToken: ProtoByteString,
8680
/**
8781
* The view is responsible for computing the final merged truth of what
8882
* docs are in the query. It gets notified of local and remote changes,
@@ -195,12 +189,7 @@ export class SyncEngine implements RemoteSyncer {
195189
'applyChanges for new view should always return a snapshot'
196190
);
197191

198-
const data = new QueryView(
199-
query,
200-
queryData.targetId,
201-
queryData.resumeToken,
202-
view
203-
);
192+
const data = new QueryView(query, queryData.targetId, view);
204193
this.queryViewsByQuery.set(query, data);
205194
this.queryViewsByTarget[queryData.targetId] = data;
206195
this.viewHandler!([viewChange.snapshot!]);

0 commit comments

Comments
 (0)