Skip to content

Commit 3286808

Browse files
committed
chore: 删除耗时记录
1 parent d89218c commit 3286808

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

internal/proxy/MaskingResponseWriter.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ package proxy
22

33
import (
44
"bytes"
5-
"fmt"
65
"net/http"
76
"security-gateway/pkg/server"
87
"strings"
98
"sync"
10-
"time"
119
)
1210

1311
type MaskingResponseWriter struct {
@@ -61,9 +59,7 @@ func (m *MaskingResponseWriter) Write(b []byte) (int, error) {
6159

6260
// 逐字节处理脱敏
6361
if len(m.maskingFields) > 0 && strings.Contains(contentType, "application/json") {
64-
t := time.Now()
6562
m.processChunk(b) // 直接处理数据并写入ResponseWriter
66-
fmt.Println("processChunk time:", time.Since(t).Milliseconds())
6763
} else {
6864
// 直接写入ResponseWriter
6965
_, _ = m.writeToResponse(b)

0 commit comments

Comments
 (0)