aboutsummaryrefslogtreecommitdiff
path: root/tcpdialer.go
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <Oleksandr_Redko@epam.com> 2023-11-24 12:33:04 +0200
committerGravatar GitHub <noreply@github.com> 2023-11-24 11:33:04 +0100
commitf196617f5598f05df49f2c15ffde70a9d908f292 (patch)
tree17029edd8643ee9c4026d188c5ce5edfe93b1141 /tcpdialer.go
parentEnable wastedassign, whitespace linters; fix issues (#1665) (diff)
downloadfasthttp-f196617f5598f05df49f2c15ffde70a9d908f292.tar.gz
fasthttp-f196617f5598f05df49f2c15ffde70a9d908f292.tar.bz2
fasthttp-f196617f5598f05df49f2c15ffde70a9d908f292.zip
chore: Use 'any' instead of 'interface{}' (#1666)
gofmt -w -r "interface{} -> any" -l .
Diffstat (limited to 'tcpdialer.go')
-rw-r--r--tcpdialer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcpdialer.go b/tcpdialer.go
index a8538b8..46611e7 100644
--- a/tcpdialer.go
+++ b/tcpdialer.go
@@ -369,7 +369,7 @@ func (d *TCPDialer) tcpAddrsClean() {
for {
time.Sleep(time.Second)
t := time.Now()
- d.tcpAddrsMap.Range(func(k, v interface{}) bool {
+ d.tcpAddrsMap.Range(func(k, v any) bool {
if e, ok := v.(*tcpAddrEntry); ok && t.Sub(e.resolveTime) > expireDuration {
d.tcpAddrsMap.Delete(k)
}