升级RateLimiter接口约束

This commit is contained in:
2025-05-09 10:58:39 +08:00
parent 70d044e3a3
commit 21060e4913
3 changed files with 4 additions and 30 deletions

View File

@ -7,7 +7,9 @@
// Date : 2025-05-07 21:13
package abstract
import "git.zhangdeman.cn/zhangdeman/network/httpclient/define"
// RateLimiter v2 流控口约束, v3移除了, 人工补齐
type RateLimiter interface {
Allow() bool
Allow(reqCfg *define.Request) bool
}