Skip to content

Commit 87f7137

Browse files
Rename
1 parent a1faa32 commit 87f7137

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/firestore/src/core/sync_engine.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ export class SyncEngine implements RemoteSyncer {
860860
);
861861
}
862862

863-
async handleUserChange(user: User): Promise<void> {
863+
async handleCredentialChange(user: User): Promise<void> {
864864
const userChanged = !this.currentUser.isEqual(user);
865865

866866
if (userChanged) {

packages/firestore/src/remote/remote_store.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ export class RemoteStore implements TargetMetadataProvider {
776776

777777
await this.disableNetworkInternal();
778778
this.onlineStateTracker.set(OnlineState.Unknown);
779-
await this.syncEngine.handleUserChange(user);
779+
await this.syncEngine.handleCredentialChange(user);
780780

781781
this.offlineCauses.delete(OfflineCause.CredentialChange);
782782
await this.enableNetworkInternal();

packages/firestore/src/remote/remote_syncer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,5 @@ export interface RemoteSyncer {
7171
* Updates all local state to match the pending mutations for the given user.
7272
* May be called repeatedly for the same user.
7373
*/
74-
handleUserChange(user: User): Promise<void>;
74+
handleCredentialChange(user: User): Promise<void>;
7575
}

packages/firestore/test/unit/specs/spec_test_runner.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ abstract class TestRunner {
716716

717717
private async doChangeUser(user: string | null): Promise<void> {
718718
this.user = new User(user);
719-
// We don't block on `handleCredentialChange` as it may not get executed
719+
// We don't block on `handleUserChange` as it may not get executed
720720
// during an IndexedDb failure. Non-recovery tests will pick up the user
721721
// change when the AsyncQueue is drained.
722722
this.queue.enqueueRetryable(() =>

0 commit comments

Comments
 (0)