@@ -58,19 +58,19 @@ import { Code, FirestoreError } from '../util/error';
58
58
import { DatabaseInfo } from './database_info' ;
59
59
import { EventManager , newEventManager } from './event_manager' ;
60
60
import { SyncEngine } from './sync_engine' ;
61
- import { OnlineStateSource } from './types' ;
62
61
import {
63
- applyActiveTargetsChange ,
64
- applyBatchState ,
65
- applyOnlineStateChange ,
66
- applyPrimaryState ,
67
- applyTargetState ,
62
+ syncEngineApplyActiveTargetsChange ,
63
+ syncEngineApplyBatchState ,
64
+ syncEngineApplyOnlineStateChange ,
65
+ syncEngineApplyPrimaryState ,
66
+ syncEngineApplyTargetState ,
68
67
ensureWriteCallbacks ,
69
- getActiveClients ,
68
+ syncEngineGetActiveClients ,
70
69
newSyncEngine ,
71
70
syncEngineHandleCredentialChange ,
72
- synchronizeWithChangedDocuments
71
+ syncEngineSynchronizeWithChangedDocuments
73
72
} from './sync_engine_impl' ;
73
+ import { OnlineStateSource } from './types' ;
74
74
75
75
export interface ComponentConfiguration {
76
76
asyncQueue : AsyncQueue ;
@@ -252,14 +252,14 @@ export class MultiTabOfflineComponentProvider extends IndexedDbOfflineComponentP
252
252
253
253
if ( this . sharedClientState instanceof WebStorageSharedClientState ) {
254
254
this . sharedClientState . syncEngine = {
255
- applyBatchState : applyBatchState . bind ( null , syncEngine ) ,
256
- applyTargetState : applyTargetState . bind ( null , syncEngine ) ,
257
- applyActiveTargetsChange : applyActiveTargetsChange . bind (
255
+ applyBatchState : syncEngineApplyBatchState . bind ( null , syncEngine ) ,
256
+ applyTargetState : syncEngineApplyTargetState . bind ( null , syncEngine ) ,
257
+ applyActiveTargetsChange : syncEngineApplyActiveTargetsChange . bind (
258
258
null ,
259
259
syncEngine
260
260
) ,
261
- getActiveClients : getActiveClients . bind ( null , syncEngine ) ,
262
- synchronizeWithChangedDocuments : synchronizeWithChangedDocuments . bind (
261
+ getActiveClients : syncEngineGetActiveClients . bind ( null , syncEngine ) ,
262
+ synchronizeWithChangedDocuments : syncEngineSynchronizeWithChangedDocuments . bind (
263
263
null ,
264
264
syncEngine
265
265
)
@@ -270,7 +270,7 @@ export class MultiTabOfflineComponentProvider extends IndexedDbOfflineComponentP
270
270
// NOTE: This will immediately call the listener, so we make sure to
271
271
// set it after localStore / remoteStore are started.
272
272
await this . persistence . setPrimaryStateListener ( async isPrimary => {
273
- await applyPrimaryState (
273
+ await syncEngineApplyPrimaryState (
274
274
this . onlineComponentProvider . syncEngine ,
275
275
isPrimary
276
276
) ;
@@ -339,7 +339,7 @@ export class OnlineComponentProvider {
339
339
) ;
340
340
341
341
this . sharedClientState . onlineStateHandler = onlineState =>
342
- applyOnlineStateChange (
342
+ syncEngineApplyOnlineStateChange (
343
343
this . syncEngine ,
344
344
onlineState ,
345
345
OnlineStateSource . SharedClientState
@@ -372,7 +372,7 @@ export class OnlineComponentProvider {
372
372
this . datastore ,
373
373
cfg . asyncQueue ,
374
374
onlineState =>
375
- applyOnlineStateChange (
375
+ syncEngineApplyOnlineStateChange (
376
376
this . syncEngine ,
377
377
onlineState ,
378
378
OnlineStateSource . RemoteStore
0 commit comments