Skip to content

Commit

Permalink
Firestore: firestore_client.ts: async getConfiguration() -> get confi…
Browse files Browse the repository at this point in the history
…guration() (#7908)
  • Loading branch information
dconeybe authored Jan 2, 2024
1 parent 06f8085 commit 093e022
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/firestore/src/core/firestore_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export class FirestoreClient {
});
}

async getConfiguration(): Promise<ComponentConfiguration> {
get configuration(): ComponentConfiguration {
return {
asyncQueue: this.asyncQueue,
databaseInfo: this.databaseInfo,
Expand Down Expand Up @@ -222,7 +222,7 @@ export async function setOfflineComponentProvider(
client.asyncQueue.verifyOperationInProgress();

logDebug(LOG_TAG, 'Initializing OfflineComponentProvider');
const configuration = await client.getConfiguration();
const configuration = client.configuration;
await offlineComponentProvider.initialize(configuration);

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

logDebug(LOG_TAG, 'Initializing OnlineComponentProvider');
const configuration = await client.getConfiguration();
await onlineComponentProvider.initialize(
offlineComponentProvider,
configuration
client.configuration
);
// The CredentialChangeListener of the online component provider takes
// precedence over the offline component provider.
Expand Down

0 comments on commit 093e022

Please sign in to comment.