From 28c2f6db862bc9c805bbf969bece56200db79433 Mon Sep 17 00:00:00 2001 From: sheyanjie Date: Fri, 15 Dec 2023 16:21:03 +0800 Subject: [PATCH] remove comment --- api/audit.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/api/audit.go b/api/audit.go index fa9e636..f69981b 100644 --- a/api/audit.go +++ b/api/audit.go @@ -9,8 +9,6 @@ import ( "net/http" "strings" - // "sync" - "github.com/gin-gonic/gin" "github.com/taosdata/taoskeeper/db" "github.com/taosdata/taoskeeper/infrastructure/config" @@ -23,9 +21,6 @@ const MAX_DETAIL_LEN = 50000 const MAX_SQL_LEN = 1000 * 1000 -// var idMap = sync.Map{} -// var duplicateCount = 0 - type Audit struct { username string password string @@ -191,10 +186,6 @@ func handleBatchRecord(auditArray []AuditInfo, conn *db.Connector) error { builder.WriteString(head) for _, audit := range auditArray { - // if _, exists := idMap.Load(audit.Timestamp); exists { - // duplicateCount += 1 - // } - // idMap.Store(audit.Timestamp, true) details := handleDetails(audit.Details) varluesStr := fmt.Sprintf( @@ -219,10 +210,6 @@ func handleBatchRecord(auditArray []AuditInfo, conn *db.Connector) error { } } - // if duplicateCount > 0 { - // auditLogger.Error("## Duplicate total: ", duplicateCount) - // } - return nil }