Skip to content

Commit

Permalink
Incorporate review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeshLK committed Nov 20, 2024
1 parent c2db62c commit d4dc22d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/kafka-hub/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ services:
# Maximum number of records returned in a single call to consumer-poll
KAFKA_CONSUMER_MAX_POLL_RECORDS: 50
# The HTTP status codes for which the client should retry
RETRYABLE_STATUS_CODES: "500 502 503"
RETRYABLE_STATUS_CODES: "500,502,503"
volumes:
# Kafka client truststore file
- ./_resources/secrets/kafka-client/kafka-client.trustStore.jks:/home/ballerina/resources/brokercerts/client-truststore.jks
Expand Down
4 changes: 2 additions & 2 deletions examples/kafka-hub/hub/modules/config/configurations.bal
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ isolated function getRetryableStatusCodes(int[] configuredCodes) returns int[]|e
if os:getEnv("RETRYABLE_STATUS_CODES") is "" {
return configuredCodes;
}
string[] statusCodes = re ` `.split(os:getEnv("RETRYABLE_STATUS_CODES"));
return statusCodes.'map(i => check int:fromString(i));
string[] statusCodes = re `,`.split(os:getEnv("RETRYABLE_STATUS_CODES"));
return statusCodes.'map(i => check int:fromString(i.trim()));
}

0 comments on commit d4dc22d

Please sign in to comment.