-
Notifications
You must be signed in to change notification settings - Fork 945
Remove instanceof IndexedDbRemoteDocumentCache check #2566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,6 +95,15 @@ export interface RemoteDocumentCache { | |
readTime: SnapshotVersion; | ||
}>; | ||
|
||
/** | ||
* Returns the read time of the most recently read document in the cache, or | ||
* SnapshotVersion.MIN if not available. | ||
*/ | ||
// PORTING NOTE: This is only used for multi-tab synchronization. | ||
getLastReadTime( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Question: why is this declaration here, whereas previously There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It allows me to use this method in Persistence without checking |
||
transaction: PersistenceTransaction | ||
): PersistencePromise<SnapshotVersion>; | ||
|
||
/** | ||
* Provides access to add or update the contents of the cache. The buffer | ||
* handles proper size accounting for the change. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drive by comment: don't the comments still apply? (i.e. isn't this still only used for multi-tab?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment is already on the interface declaration.