File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ export class ConfigurationClientManager {
3232 #validDomain: string ;
3333 #staticClients: ConfigurationClientWrapper [ ] ; // there should always be only one static client
3434 #dynamicClients: ConfigurationClientWrapper [ ] ;
35+ #replicaCount: number = 0 ;
3536 #lastFallbackClientRefreshTime: number = 0 ;
3637 #lastFallbackClientRefreshAttempt: number = 0 ;
3738
@@ -97,7 +98,7 @@ export class ConfigurationClientManager {
9798 }
9899
99100 getReplicaCount ( ) : number {
100- return this . #dynamicClients . length ;
101+ return this . #replicaCount ;
101102 }
102103
103104 async getClients ( ) : Promise < ConfigurationClientWrapper [ ] > {
@@ -165,6 +166,7 @@ export class ConfigurationClientManager {
165166
166167 this . #dynamicClients = newDynamicClients ;
167168 this . #lastFallbackClientRefreshTime = Date . now ( ) ;
169+ this . #replicaCount = this . #dynamicClients. length ;
168170 }
169171
170172 /**
You can’t perform that action at this time.
0 commit comments