瀏覽代碼

Add timestamp to EventConcurrencyLimited

tags/v2.0.0-rc1
9seconds 5 年之前
父節點
當前提交
5e31b95bb5
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      mtglib/proxy.go

+ 3
- 1
mtglib/proxy.go 查看文件

@@ -74,7 +74,9 @@ func (p *Proxy) Serve(listener net.Listener) error {
74 74
 		case errors.Is(err, ants.ErrPoolClosed):
75 75
 			return nil
76 76
 		case errors.Is(err, ants.ErrPoolOverload):
77
-			p.eventStream.Send(p.ctx, EventConcurrencyLimited{})
77
+			p.eventStream.Send(p.ctx, EventConcurrencyLimited{
78
+				CreatedAt: time.Now(),
79
+			})
78 80
 		}
79 81
 	}
80 82
 }

Loading…
取消
儲存