From d58cf7a12a2f70d41b43db249f66e08f1dedf3e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=9C=86=E5=BB=BA?= <624508914@qq.com> Date: Mon, 18 Apr 2022 17:38:36 +0800 Subject: [PATCH] fix: Hdel check result & Pfadd check result (#1801) --- core/stores/redis/redis.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/stores/redis/redis.go b/core/stores/redis/redis.go index 9095d7d3..f3e2a7a2 100644 --- a/core/stores/redis/redis.go +++ b/core/stores/redis/redis.go @@ -681,7 +681,7 @@ func (s *Redis) HdelCtx(ctx context.Context, key string, fields ...string) (val return err } - val = v == 1 + val = v >= 1 return nil }, acceptable) @@ -1219,7 +1219,7 @@ func (s *Redis) PfaddCtx(ctx context.Context, key string, values ...interface{}) return err } - val = v == 1 + val = v >= 1 return nil }, acceptable)