Skip to content

Commit

Permalink
stats: imp code
Browse files Browse the repository at this point in the history
  • Loading branch information
schzhn committed Aug 3, 2023
1 parent c341012 commit b70b088
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/stats/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package stats
import (
"fmt"
"io"
"net"
"net/netip"
"os"
"sync"
Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit b70b088

Please sign in to comment.