Skip to content

Commit

Permalink
Merge pull request #721 from csjacobs24/upgrade-aws-sdk
Browse files Browse the repository at this point in the history
Upgrade awssdk to resolve netty-codec-http vulnerability
  • Loading branch information
mrerrormessage authored Jun 18, 2024
2 parents d7c2dae + 9bee72f commit a9a9831
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//Core deps
val amazonV = "2.21.17"
val amazonV = "2.26.4"
val catsV = "2.7.0"
val catsEffectV = "3.3.14"
val fs2V = "3.2.14"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import cats.syntax.all._
import cats.effect._
import fs2.Stream
import software.amazon.awssdk.regions.Region
import software.amazon.awssdk.services.sqs.model.QueueAttributeName.ALL
import software.amazon.awssdk.services.sqs.model.MessageSystemAttributeName.ALL
import software.amazon.awssdk.services.sqs.model._

import scala.jdk.CollectionConverters._
Expand Down Expand Up @@ -99,7 +99,7 @@ object SimpleSqsClient {
.visibilityTimeout(visibilityTimeoutSeconds)
.waitTimeSeconds(waitTimeSeconds)

val reqWithMaybeAttrs = (if (receiveAttrs) req.attributeNames(ALL).messageAttributeNames(ALL.toString) else req).build
val reqWithMaybeAttrs = (if (receiveAttrs) req.messageSystemAttributeNames(ALL).messageAttributeNames(ALL.toString) else req).build

client
.receiveMessageStream(reqWithMaybeAttrs)
Expand Down

0 comments on commit a9a9831

Please sign in to comment.