From 1d288d8f8da91fe8ca7f9fd6db4b3f11f5dc2b56 Mon Sep 17 00:00:00 2001 From: Daniel Balazs <43600105+Dani3lB@users.noreply.github.com> Date: Tue, 24 Oct 2023 21:37:16 +0200 Subject: [PATCH] fix decrBy (#825) --- .../src/main/scala/dev/profunktor/redis4cats/redis.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/effects/src/main/scala/dev/profunktor/redis4cats/redis.scala b/modules/effects/src/main/scala/dev/profunktor/redis4cats/redis.scala index fde0ed86..0b9af637 100644 --- a/modules/effects/src/main/scala/dev/profunktor/redis4cats/redis.scala +++ b/modules/effects/src/main/scala/dev/profunktor/redis4cats/redis.scala @@ -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)))