Skip to content

Commit

Permalink
address deprecation warnings after updating to fs2 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
bpholt committed Nov 16, 2023
1 parent f82bad3 commit 212ed7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/main/scala/com/dwolla/aws/ecs/EcsAlg.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ object EcsAlg {
ecs
.listClusters(_: Option[String], None)
.map { resp =>
resp.clusterArns.map(Chunk.iterable(_)).getOrElse(Chunk.empty) -> resp.nextToken
resp.clusterArns.map(Chunk.from(_)).getOrElse(Chunk.empty) -> resp.nextToken
}
}
.map(ClusterArn(_))
Expand Down Expand Up @@ -103,7 +103,7 @@ object EcsAlg {
containerInstance = ci.value.some,
nextToken = nextToken,
)
} yield resp.taskArns.map(Chunk.iterable(_)).getOrElse(Chunk.empty) -> resp.nextToken
} yield resp.taskArns.map(Chunk.from(_)).getOrElse(Chunk.empty) -> resp.nextToken
}
} yield TaskArn(taskArn)

Expand Down Expand Up @@ -132,6 +132,6 @@ object EcsAlg {

extension[A] (maybeList: Option[List[A]]) {
def toChunk: Chunk[A] =
maybeList.fold(Chunk.empty)(Chunk.iterable)
maybeList.fold(Chunk.empty)(Chunk.from)
}
}

0 comments on commit 212ed7a

Please sign in to comment.