Skip to content

Commit bd72f9f

Browse files
Split SyncEngine
1 parent dface90 commit bd72f9f

File tree

5 files changed

+1640
-1624
lines changed

5 files changed

+1640
-1624
lines changed

packages/firestore/src/core/component_provider.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,20 @@ import { Code, FirestoreError } from '../util/error';
5757

5858
import { DatabaseInfo } from './database_info';
5959
import { EventManager, newEventManager } from './event_manager';
60+
import { SyncEngine } from './sync_engine';
61+
import { OnlineStateSource } from './types';
6062
import {
6163
applyActiveTargetsChange,
6264
applyBatchState,
6365
applyOnlineStateChange,
6466
applyPrimaryState,
6567
applyTargetState,
68+
ensureWriteCallbacks,
6669
getActiveClients,
67-
syncEngineHandleCredentialChange,
6870
newSyncEngine,
69-
SyncEngine,
70-
ensureWriteCallbacks,
71+
syncEngineHandleCredentialChange,
7172
synchronizeWithChangedDocuments
72-
} from './sync_engine';
73-
import { OnlineStateSource } from './types';
73+
} from './sync_engine_impl';
7474

7575
export interface ComponentConfiguration {
7676
asyncQueue: AsyncQueue;

packages/firestore/src/core/firestore_client.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,18 @@ import {
7373
removeSnapshotsInSyncListener
7474
} from './event_manager';
7575
import { newQueryForPath, Query } from './query';
76+
import { SyncEngine } from './sync_engine';
77+
import { Transaction } from './transaction';
78+
import { TransactionRunner } from './transaction_runner';
79+
import { View } from './view';
80+
import { ViewSnapshot } from './view_snapshot';
7681
import {
7782
registerPendingWritesCallback,
78-
SyncEngine,
7983
syncEngineListen,
8084
syncEngineLoadBundle,
8185
syncEngineUnlisten,
8286
syncEngineWrite
83-
} from './sync_engine';
84-
import { Transaction } from './transaction';
85-
import { TransactionRunner } from './transaction_runner';
86-
import { View } from './view';
87-
import { ViewSnapshot } from './view_snapshot';
87+
} from './sync_engine_impl';
8888

8989
const LOG_TAG = 'FirestoreClient';
9090
export const MAX_CONCURRENT_LIMBO_RESOLUTIONS = 100;

0 commit comments

Comments
 (0)