]> 127.0.0.1 Git - part/.git/commitdiff
1
authorqydysky <qydysky@foxmail.com>
Mon, 15 Jan 2024 12:20:05 +0000 (20:20 +0800)
committerqydysky <qydysky@foxmail.com>
Mon, 15 Jan 2024 12:20:05 +0000 (20:20 +0800)
web/Web.go

index 3e088b84319edcc845673dde213b57161d9c7a26..f0e7a8fc03854fc2b1c0ccb483d01fc8abbce738 100644 (file)
@@ -219,6 +219,7 @@ func (t *Limits) AddLimitItem(item *limitItem) {
        t.g = append(t.g, item)
 }
 
+// Deprecated: 反直觉的方法
 func (t *Limits) ReachMax(r *http.Request) (isOverflow bool) {
        if len(t.g) == 0 {
                return