Explorar el Código

fix: Hdel check result & Pfadd check result (#1801)

杨圆建 hace 3 años
padre
commit
d58cf7a12a
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      core/stores/redis/redis.go

+ 2 - 2
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)