File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -860,7 +860,7 @@ export class SyncEngine implements RemoteSyncer {
860
860
) ;
861
861
}
862
862
863
- async handleUserChange ( user : User ) : Promise < void > {
863
+ async handleCredentialChange ( user : User ) : Promise < void > {
864
864
const userChanged = ! this . currentUser . isEqual ( user ) ;
865
865
866
866
if ( userChanged ) {
Original file line number Diff line number Diff line change @@ -776,7 +776,7 @@ export class RemoteStore implements TargetMetadataProvider {
776
776
777
777
await this . disableNetworkInternal ( ) ;
778
778
this . onlineStateTracker . set ( OnlineState . Unknown ) ;
779
- await this . syncEngine . handleUserChange ( user ) ;
779
+ await this . syncEngine . handleCredentialChange ( user ) ;
780
780
781
781
this . offlineCauses . delete ( OfflineCause . CredentialChange ) ;
782
782
await this . enableNetworkInternal ( ) ;
Original file line number Diff line number Diff line change @@ -71,5 +71,5 @@ export interface RemoteSyncer {
71
71
* Updates all local state to match the pending mutations for the given user.
72
72
* May be called repeatedly for the same user.
73
73
*/
74
- handleUserChange ( user : User ) : Promise < void > ;
74
+ handleCredentialChange ( user : User ) : Promise < void > ;
75
75
}
Original file line number Diff line number Diff line change @@ -716,7 +716,7 @@ abstract class TestRunner {
716
716
717
717
private async doChangeUser ( user : string | null ) : Promise < void > {
718
718
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
720
720
// during an IndexedDb failure. Non-recovery tests will pick up the user
721
721
// change when the AsyncQueue is drained.
722
722
this . queue . enqueueRetryable ( ( ) =>
You can’t perform that action at this time.
0 commit comments