Skip to content

Commit

Permalink
remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sheyanjie-taos committed Dec 15, 2023
1 parent 7b2ae6e commit 28c2f6d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions api/audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -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(
Expand All @@ -219,10 +210,6 @@ func handleBatchRecord(auditArray []AuditInfo, conn *db.Connector) error {
}
}

// if duplicateCount > 0 {
// auditLogger.Error("## Duplicate total: ", duplicateCount)
// }

return nil
}

Expand Down

0 comments on commit 28c2f6d

Please sign in to comment.