From b70b088af0fdc7d6d048d688160048bad1fceb12 Mon Sep 17 00:00:00 2001 From: Stanislav Chzhen Date: Thu, 3 Aug 2023 19:32:04 +0300 Subject: [PATCH] stats: imp code --- internal/stats/stats.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/internal/stats/stats.go b/internal/stats/stats.go index fb7f634e61b..614b2ca8ce5 100644 --- a/internal/stats/stats.go +++ b/internal/stats/stats.go @@ -5,7 +5,6 @@ package stats import ( "fmt" "io" - "net" "net/netip" "os" "sync" @@ -282,11 +281,6 @@ func (s *StatsCtx) Update(e *Entry) { return } - clientID := e.Client - if ip := net.ParseIP(clientID); ip != nil { - e.Client = ip.String() - } - s.curr.add(e) }