Kaynağa Gözat

fix: request record redis key (#198)

zijiren 7 ay önce
ebeveyn
işleme
d1583a534c
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      core/common/reqlimit/main.go

+ 1 - 1
core/common/reqlimit/main.go

@@ -62,7 +62,7 @@ func GetGroupModelTokennameRequest(ctx context.Context, group, model, tokenname
 		tokenname = "*"
 		tokenname = "*"
 	}
 	}
 	if common.RedisEnabled {
 	if common.RedisEnabled {
-		totalCount, secondCount, err := redisGroupModelTokennameLimiter.GetRequest(ctx, time.Minute, group, model)
+		totalCount, secondCount, err := redisGroupModelTokennameLimiter.GetRequest(ctx, time.Minute, group, model, tokenname)
 		if err == nil {
 		if err == nil {
 			return totalCount, secondCount
 			return totalCount, secondCount
 		}
 		}