Skip to content

Commit

Permalink
Fix compilation for Scala 2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
yoohaemin committed Oct 17, 2024
1 parent 088f22f commit 3c8860e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ class Sharding private (
shardAssignments.get

val thisPodAssignments: UIO[Chunk[ShardId]] =
getAssignments.map(_.view.collect { case (shardId, addr) if addr == this.address => shardId }.to(Chunk))
getAssignments.map(a =>
Chunk.fromIterable(a.view.collect { case (shardId, addr) if addr == this.address => shardId })
)

val getPods: UIO[Set[PodAddress]] =
shardAssignments.get.map(_.values.toSet)
Expand Down

0 comments on commit 3c8860e

Please sign in to comment.