@@ -42,7 +42,7 @@ export class Configuration {
42
42
this.httpConfig = httpConfig;
43
43
this.debug = debug;
44
44
this.enableRetry= enableRetry;
45
- this.maxRetries = maxRetries;
45
+ this.maxRetries = maxRetries;
46
46
this.backoffBase = backoffBase;
47
47
this.backoffMultiplier = backoffMultiplier;
48
48
this.unstableOperations = unstableOperations;
@@ -72,7 +72,11 @@ export class Configuration {
72
72
this.servers[index].setVariables(serverVariables);
73
73
74
74
for (const op in this.operationServers) {
75
- this.operationServers[op][0].setVariables(serverVariables);
75
+ const index =
76
+ op in this.operationServerIndices
77
+ ? this.operationServerIndices[op]
78
+ : this.serverIndex;
79
+ this.operationServers[op][index].setVariables(serverVariables);
76
80
}
77
81
}
78
82
@@ -131,7 +135,7 @@ export interface ConfigurationParameters {
131
135
*/
132
136
zstdCompressorCallback?: ZstdCompressorCallback
133
137
/**
134
- * Maximum of retry attempts allowed
138
+ * Maximum of retry attempts allowed
135
139
*/
136
140
maxRetries?: number;
137
141
/**
@@ -190,7 +194,7 @@ export function createConfiguration(conf: ConfigurationParameters = {}): Configu
190
194
conf.debug,
191
195
conf.enableRetry || false,
192
196
conf.maxRetries || 3,
193
- conf.backoffBase || 2,
197
+ conf.backoffBase || 2,
194
198
conf.backoffMultiplier || 2,
195
199
{
196
200
{% - for version , api in apis .items () %}
@@ -207,8 +211,8 @@ export function createConfiguration(conf: ConfigurationParameters = {}): Configu
207
211
configuration.httpApi.zstdCompressorCallback = conf.zstdCompressorCallback
208
212
configuration.httpApi.debug = configuration.debug;
209
213
configuration.httpApi.enableRetry = configuration.enableRetry;
210
- configuration.httpApi.maxRetries = configuration.maxRetries;
211
- configuration.httpApi.backoffBase = configuration.backoffBase;
214
+ configuration.httpApi.maxRetries = configuration.maxRetries;
215
+ configuration.httpApi.backoffBase = configuration.backoffBase;
212
216
configuration.httpApi.backoffMultiplier = configuration.backoffMultiplier;
213
217
return configuration;
214
218
}
0 commit comments