修改判断的条件

This commit is contained in:
Yun
2025-09-24 15:06:33 +08:00
parent 0be8fd0cdc
commit 0c4e92f164
+1 -1
View File
@@ -34,7 +34,7 @@ type Priority struct {
func InitPriority(ctx context.Context, re redis.UniversalClient, keyPrefix string, priority int64, opts ...Option) (*Priority, error) { func InitPriority(ctx context.Context, re redis.UniversalClient, keyPrefix string, priority int64, opts ...Option) (*Priority, error) {
if re != nil { if re == nil {
return nil, errors.New("redis is nil") return nil, errors.New("redis is nil")
} }