Skip to content

Commit 093e022

Browse files
authored
Firestore: firestore_client.ts: async getConfiguration() -> get configuration() (#7908)
1 parent 06f8085 commit 093e022

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/firestore/src/core/firestore_client.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export class FirestoreClient {
150150
});
151151
}
152152

153-
async getConfiguration(): Promise<ComponentConfiguration> {
153+
get configuration(): ComponentConfiguration {
154154
return {
155155
asyncQueue: this.asyncQueue,
156156
databaseInfo: this.databaseInfo,
@@ -222,7 +222,7 @@ export async function setOfflineComponentProvider(
222222
client.asyncQueue.verifyOperationInProgress();
223223

224224
logDebug(LOG_TAG, 'Initializing OfflineComponentProvider');
225-
const configuration = await client.getConfiguration();
225+
const configuration = client.configuration;
226226
await offlineComponentProvider.initialize(configuration);
227227

228228
let currentUser = configuration.initialUser;
@@ -254,10 +254,9 @@ export async function setOnlineComponentProvider(
254254
const offlineComponentProvider = await ensureOfflineComponents(client);
255255

256256
logDebug(LOG_TAG, 'Initializing OnlineComponentProvider');
257-
const configuration = await client.getConfiguration();
258257
await onlineComponentProvider.initialize(
259258
offlineComponentProvider,
260-
configuration
259+
client.configuration
261260
);
262261
// The CredentialChangeListener of the online component provider takes
263262
// precedence over the offline component provider.

0 commit comments

Comments
 (0)