More idioms related to go 1.26

This commit is contained in:
9seconds
2026-02-17 23:38:12 +01:00
parent 80b9159ce9
commit 3b03c4a90a
21 changed files with 33 additions and 33 deletions
+1 -1
View File
@@ -323,7 +323,7 @@ func NewProxy(opts ProxyOpts) (*Proxy, error) {
}
pool, err := ants.NewPoolWithFunc(opts.getConcurrency(),
func(arg interface{}) {
func(arg any) {
proxy.ServeConn(arg.(essentials.Conn)) //nolint: forcetypeassert
},
ants.WithLogger(opts.getLogger("ants")),