Skip to content

Commit

Permalink
trim slowdown codes before parsing to int
Browse files Browse the repository at this point in the history
  • Loading branch information
Grekkq committed Oct 16, 2023
1 parent 9030d7c commit 860f295
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ rokku {
region = "us-east-1"
v2SignatureEnabled = false
# To add more then one code, seperate them with comma
slowdownCodes = "503"
slowdownCodes = "502, 503"
healthCheck {
# can be one of:
# s3ListBucket - uses AWS S3 client to list single bucket
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class StorageS3Settings(config: Config) extends Extension {
val storageS3AdminSecretkey: String = config.getString("rokku.storage.s3.admin.secretkey")
val awsRegion: String = config.getString("rokku.storage.s3.region")
val v2SignatureEnabled: Boolean = config.getBoolean("rokku.storage.s3.v2SignatureEnabled")
val slowdownCodes: Array[Int] = config.getString("rokku.storage.s3.slowdownCodes").split(",").map(o => o.toInt)
val slowdownCodes: Array[Int] = config.getString("rokku.storage.s3.slowdownCodes").split(",").map(o => o.trim.toInt)
val isRequestUserQueueEnabled: Boolean = config.getBoolean("rokku.storage.s3.request.queue.enable")
private val hcMethodString = config.getString("rokku.storage.s3.healthCheck.method")
val hcMethod: HCMethod = hcMethodString match {
Expand Down

0 comments on commit 860f295

Please sign in to comment.