Skip to content

Commit

Permalink
Cleans up changes from memory circuit breaker PR (#1463)
Browse files Browse the repository at this point in the history
* Cleans up whitespace, reduces delta of the changes.

Follow-up from #1347

Signed-off-by: Tommy Markley <markleyt@amazon.com>
  • Loading branch information
Tommy Markley committed Apr 14, 2022
1 parent a01e67a commit e6911a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/core/server/opensearch/client/client_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ export function parseClientOptions(config: OpenSearchClientConfig, scoped: boole
if (config.memoryCircuitBreaker != null) {
clientOptions.memoryCircuitBreaker = config.memoryCircuitBreaker;
}
if (config.requestTimeout != null) {
clientOptions.requestTimeout = getDurationAsMs(config.requestTimeout);
}
if (config.pingTimeout != null) {
clientOptions.pingTimeout = getDurationAsMs(config.pingTimeout);
}
if (config.requestTimeout != null) {
clientOptions.requestTimeout = getDurationAsMs(config.requestTimeout);
}
if (config.sniffInterval != null) {
clientOptions.sniffInterval =
typeof config.sniffInterval === 'boolean'
Expand Down
2 changes: 1 addition & 1 deletion src/core/server/opensearch/opensearch_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ export class OpenSearchConfig {
* The `maxPercentage` field is to determine the threshold for maximum heap size for memory circuit breaker. By default the value is `1.0`.
* The `enabled` field specifies whether the client should protect large response that can't fit into memory.
*/

public readonly memoryCircuitBreaker: OpenSearchConfigType['memoryCircuitBreaker'];

/**
* Specifies whether the client should attempt to detect the rest of the cluster
* when it is first instantiated.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ opensearch_dashboards_vars=(
opensearch.customHeaders
opensearch.hosts
opensearch.logQueries
opensearch.password
opensearch.requestHeadersWhitelist
opensearch.memoryCircuitBreaker.enabled
opensearch.memoryCircuitBreaker.maxPercentage
opensearch.password
opensearch.pingTimeout
opensearch.requestHeadersWhitelist
opensearch.requestTimeout
opensearch.shardTimeout
opensearch.sniffInterval
Expand Down

0 comments on commit e6911a0

Please sign in to comment.