Skip to content

Commit

Permalink
fix decrBy (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dani3lB authored Oct 24, 2023
1 parent e17de3f commit 1d288d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ private[redis4cats] class BaseRedis[F[_]: FutureLift: MonadThrow: Log, K, V](
async.flatMap(_.decr(key).futureLift.map(x => Long.box(x)))

override def decrBy(key: K, amount: Long): F[Long] =
async.flatMap(_.incrby(key, amount).futureLift.map(x => Long.box(x)))
async.flatMap(_.decrby(key, amount).futureLift.map(x => Long.box(x)))

override def incr(key: K): F[Long] =
async.flatMap(_.incr(key).futureLift.map(x => Long.box(x)))
Expand Down

0 comments on commit 1d288d8

Please sign in to comment.