From aff875eb11eca4632597387dee7a406efda11341 Mon Sep 17 00:00:00 2001
From: coward <coward@mrx.ltd>
Date: Fri, 29 Nov 2024 16:12:03 +0800
Subject: [PATCH] =?UTF-8?q?:bug:ants=E4=BD=BF=E7=94=A8=E4=BA=86=E9=BB=98?=
 =?UTF-8?q?=E8=AE=A4=E8=BF=9E=E6=8E=A5=E6=B1=A0=E4=B8=8D=E8=A6=81release?=
 =?UTF-8?q?=EF=BC=8C=E4=BC=9A=E5=8F=98=E5=BE=97=E4=B8=8D=E5=B9=B8?=
 =?UTF-8?q?=F0=9F=98=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 loki.go | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/loki.go b/loki.go
index 27c7bce..f6a9b8b 100644
--- a/loki.go
+++ b/loki.go
@@ -75,7 +75,6 @@ func (c lokiWriter) Write(p []byte) (int, error) {
 	label["level"] = model.LabelValue(li.Level)
 	label["caller"] = model.LabelValue(li.Caller)
 
-	// 异步推送消息到服务器
 	_ = ants.Submit(func() {
 		t, e := time.ParseInLocation("2006-01-02 15:04:05.000", li.Ts, time.Local)
 		if e != nil {
@@ -86,8 +85,6 @@ func (c lokiWriter) Write(p []byte) (int, error) {
 		}
 	})
 
-	defer ants.Release()
-
 	return 0, nil
 }
 
-- 
2.45.2