File tree 2 files changed +244
-110
lines changed
packages/firestore/src/core
2 files changed +244
-110
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,12 @@ import {
27
27
newLocalStore ,
28
28
newMultiTabLocalStore
29
29
} from '../local/local_store' ;
30
- import { MultiTabSyncEngine , SyncEngine } from './sync_engine' ;
30
+ import {
31
+ MultiTabSyncEngine ,
32
+ newMultiTabSyncEngine ,
33
+ newSyncEngine ,
34
+ SyncEngine
35
+ } from './sync_engine' ;
31
36
import { RemoteStore } from '../remote/remote_store' ;
32
37
import { EventManager } from './event_manager' ;
33
38
import { AsyncQueue } from '../util/async_queue' ;
@@ -167,7 +172,7 @@ export class MemoryComponentProvider implements ComponentProvider {
167
172
}
168
173
169
174
createSyncEngine ( cfg : ComponentConfiguration ) : SyncEngine {
170
- return new SyncEngine (
175
+ return newSyncEngine (
171
176
this . localStore ,
172
177
this . remoteStore ,
173
178
cfg . datastore ,
@@ -225,7 +230,7 @@ export class IndexedDbComponentProvider extends MemoryComponentProvider {
225
230
}
226
231
227
232
createSyncEngine ( cfg : ComponentConfiguration ) : SyncEngine {
228
- const syncEngine = new MultiTabSyncEngine (
233
+ const syncEngine = newMultiTabSyncEngine (
229
234
this . localStore ,
230
235
this . remoteStore ,
231
236
cfg . datastore ,
You can’t perform that action at this time.
0 commit comments