Skip to content

Commit

Permalink
fix warning (?)
Browse files Browse the repository at this point in the history
  • Loading branch information
mberndt123 committed Nov 11, 2023
1 parent 19ac789 commit e33c0a6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ private[redis] final class ClusterExecutor private (
res <- toG(executor.execute(command))
} yield res

def executeSafe(keySlot: Slot) = {
def executeSafe(keySlot: Slot): IO[RedisError,RespValue] = {
val recover = execute(keySlot).flatMap {
case e: RespValue.Error => ZIO.fail(e.asRedisError)
case success => ZIO.succeed(success)
}.catchSome {
}.catchSome[Any, RedisError, RespValue] {
case e: RedisError.Ask => executeAsk(e.address)
case _: RedisError.Moved => refreshConnect *> execute(keySlot)
}
Expand Down

0 comments on commit e33c0a6

Please sign in to comment.