diff --git a/packages/compass-connections/src/stores/connections-store-redux.ts b/packages/compass-connections/src/stores/connections-store-redux.ts index 92da56e5653..6d6df20817f 100644 --- a/packages/compass-connections/src/stores/connections-store-redux.ts +++ b/packages/compass-connections/src/stores/connections-store-redux.ts @@ -1703,14 +1703,6 @@ const connectWithOptions = ( return; } - // We're trying to optimise the initial Compass loading times here: to - // make sure that the driver connection pool doesn't immediately get - // overwhelmed with requests, we fetch instance info only once and then - // pass it down to telemetry and instance model. This is a relatively - // expensive dataService operation so we're trying to keep the usage - // very limited - const instanceInfo = await dataService.instance(); - let showedNonRetryableErrorToast = false; // Listen for non-retry-able errors on failed server heartbeats. // These can happen on compass web when: @@ -1781,6 +1773,14 @@ const connectWithOptions = ( DataServiceForConnection.set(connectionInfo.id, dataService); + // We're trying to optimise the initial Compass loading times here: to + // make sure that the driver connection pool doesn't immediately get + // overwhelmed with requests, we fetch instance info only once and then + // pass it down to telemetry and instance model. This is a relatively + // expensive dataService operation so we're trying to keep the usage + // very limited + const instanceInfo = await dataService.instance(); + try { await dispatch( saveConnectionInfo(