@@ -41,8 +41,8 @@ import { RequestTracingOptions, getConfigurationSettingWithTrace, listConfigurat
4141import { FeatureFlagTracingOptions } from "./requestTracing/FeatureFlagTracingOptions.js" ;
4242import { KeyFilter , LabelFilter , SettingSelector } from "./types.js" ;
4343import { ConfigurationClientManager } from "./ConfigurationClientManager.js" ;
44- import { getFixedBackoffDuration , calculateDynamicBackoffDuration } from "./failover.js" ;
45- import { FailoverError , OperationError , isFailoverableError , isRetriableError } from "./error.js" ;
44+ import { getFixedBackoffDuration , calculateBackoffDuration } from "./failover.js" ;
45+ import { OperationError , isFailoverableError , isRetriableError } from "./error.js" ;
4646
4747type PagedSettingSelector = SettingSelector & {
4848 /**
@@ -357,7 +357,6 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
357357 this . #isInitialLoadCompleted = true ;
358358 break ;
359359 } catch ( error ) {
360-
361360 if ( ! isRetriableError ( error ) ) {
362361 throw error ;
363362 }
@@ -369,7 +368,7 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
369368 let backoffDuration = getFixedBackoffDuration ( timeElapsed ) ;
370369 if ( backoffDuration === undefined ) {
371370 postAttempts += 1 ;
372- backoffDuration = calculateDynamicBackoffDuration ( postAttempts ) ;
371+ backoffDuration = calculateBackoffDuration ( postAttempts ) ;
373372 }
374373 await new Promise ( resolve => setTimeout ( resolve , backoffDuration ) ) ;
375374 console . warn ( "Failed to load configuration settings at startup. Retrying..." ) ;
@@ -697,7 +696,7 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
697696 }
698697
699698 this . #clientManager. refreshClients ( ) ;
700- throw new FailoverError ( "All fallback clients failed to get configuration settings." ) ;
699+ throw new Error ( "All fallback clients failed to get configuration settings." ) ;
701700 }
702701
703702 async #processKeyValues( setting : ConfigurationSetting < string > ) : Promise < [ string , unknown ] > {
0 commit comments