From 58abe9be10362574ad9bbf5f0ff2441ee0ed06e9 Mon Sep 17 00:00:00 2001 From: willppan Date: Wed, 10 Sep 2025 17:15:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=89=93=E5=8D=B0=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/get_cos_object.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/util/get_cos_object.go b/util/get_cos_object.go index 4fdb3ac..cc4330c 100644 --- a/util/get_cos_object.go +++ b/util/get_cos_object.go @@ -3,7 +3,6 @@ package util import ( "context" "fmt" - logger "github.com/sirupsen/logrus" "github.com/tencentyun/cos-go-sdk-v5" "net/url" "runtime" @@ -257,12 +256,12 @@ func CheckDeleteMarkerExist(c *cos.Client, cosUrl StorageUrl, versionId string) } func getCosObjectList(c *cos.Client, cosUrl StorageUrl, chObjects chan<- objectInfoType, chError chan<- error, fo *FileOperations, scanSizeNum bool, withFinishSignal bool) { - startTime := time.Now().UnixNano() / 1000 / 1000 - defer func() { - endTime := time.Now().UnixNano() / 1000 / 1000 - costTime := int(endTime - startTime) - logger.Info(fmt.Sprintf("get cos list cost %ds", costTime/1000)) - }() + //startTime := time.Now().UnixNano() / 1000 / 1000 + //defer func() { + // endTime := time.Now().UnixNano() / 1000 / 1000 + // costTime := int(endTime - startTime) + // logger.Info(fmt.Sprintf("get cos list cost %ds", costTime/1000)) + //}() if chObjects != nil { defer close(chObjects) }