Skip to content

Commit

Permalink
Use fallback when executing Redis commands using Monix API
Browse files Browse the repository at this point in the history
(cherry picked from commit 64e228c)
  • Loading branch information
sebaciv committed Oct 5, 2023
1 parent 4c24627 commit 0912d96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ trait RedisMonixApi extends RedisExecutedApi {
type Result[A] = Task[A]

def execute[A](command: RedisCommand[A]): Task[A] = Task.deferFutureAction { scheduler =>
executor.executeBatch(command, execConfig.copy(decodeOn = scheduler))
executor.executeBatch(command.batchOrFallback, execConfig.copy(decodeOn = scheduler))
}

def recoverWith[A](executed: => Task[A])(fun: PartialFunction[Throwable, Task[A]]): Task[A] =
Expand Down

0 comments on commit 0912d96

Please sign in to comment.