@@ -322,10 +322,10 @@ export async function setOnlineComponentProvider(
322
322
firestoreClient . onlineComponents = onlineComponentProvider ;
323
323
}
324
324
325
- export async function getPersistence (
325
+ export function getPersistence (
326
326
firestoreClient : FirestoreClient
327
327
) : Promise < Persistence > {
328
- return ( await ensureOfflineComponents ( firestoreClient ) ) . persistence ;
328
+ return ensureOfflineComponents ( firestoreClient ) . then ( o => o . persistence ) ;
329
329
}
330
330
331
331
/** Enables the network connection and re-enqueues all pending operations. */
@@ -341,10 +341,10 @@ export async function firestoreClientEnableNetwork(
341
341
} ) ;
342
342
}
343
343
344
- export async function getRemoteStore (
344
+ export function getRemoteStore (
345
345
firestoreClient : FirestoreClient
346
346
) : Promise < RemoteStore > {
347
- return ( await ensureOnlineComponents ( firestoreClient ) ) . remoteStore ;
347
+ return ensureOnlineComponents ( firestoreClient ) . then ( o => o . remoteStore ) ;
348
348
}
349
349
350
350
/** Disables the network connection. Pending operations will not complete. */
@@ -360,10 +360,10 @@ export async function firestoreClientDisableNetwork(
360
360
} ) ;
361
361
}
362
362
363
- export async function getSyncEngine (
363
+ export function getSyncEngine (
364
364
firestoreClient : FirestoreClient
365
365
) : Promise < SyncEngine > {
366
- return ( await ensureOnlineComponents ( firestoreClient ) ) . syncEngine ;
366
+ return ensureOnlineComponents ( firestoreClient ) . then ( c => c . syncEngine ) ;
367
367
}
368
368
369
369
/**
0 commit comments