Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mrproliu committed Aug 1, 2024
1 parent bd748da commit 1db152b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/accesslog/common/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,16 +414,16 @@ func (c *ConnectionManager) OnConnectionClose(event *events.SocketCloseEvent) *C
return result
}

func (c *ConnectionManager) savingTheAddress(host string, port uint16, localPid bool, pid uint32) {
func (c *ConnectionManager) savingTheAddress(hostAddress string, port uint16, localPid bool, pid uint32) {
localAddrInfo := &addressInfo{
pid: pid,
}
c.addressWithPid.Set(fmt.Sprintf("%s_%d_%t", host, port, localPid), localAddrInfo, localAddressPairCacheTime)
c.addressWithPid.Set(fmt.Sprintf("%s_%d_%t", hostAddress, port, localPid), localAddrInfo, localAddressPairCacheTime)
localStr := strRemote
if localPid {
localStr = strLocal
}
log.Debugf("saving the %s address with pid cache, address: %s:%d, pid: %d", localStr, host, port, pid)
log.Debugf("saving the %s address with pid cache, address: %s:%d, pid: %d", localStr, hostAddress, port, pid)
}

func (c *ConnectionManager) getAddressPid(hostAddress string, port uint16, localPid bool) *addressInfo {
Expand Down

0 comments on commit 1db152b

Please sign in to comment.