Skip to content

Commit

Permalink
Remove logic to refresh assignments from shard manager (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostdogpr authored Nov 20, 2024
1 parent 5b460e7 commit a32a997
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,7 @@ class Sharding private (
)
.map(_ isEqual cdt)
)
ZIO.whenZIO(notify)(
(shardManager.notifyUnhealthyPod(pod) *>
// just in case we missed the update from the pubsub, refresh assignments
shardManager.getAssignments
.flatMap[Any, Throwable, Unit](updateAssignments(_, replaceAllAssignments = false))).forkDaemon
)
ZIO.whenZIO(notify)(shardManager.notifyUnhealthyPod(pod).forkDaemon)
}

private def sendToSelf[Msg, Res](
Expand Down

0 comments on commit a32a997

Please sign in to comment.