mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-16 16:17:38 +03:00
Go 1.26 and golangci-lint updates (#2146)
Keep Go 1.24 compatibility for now (by not using `wg.Go()`).
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ func NewFunc(f func(ctx any)) func(ctx any) bool {
|
||||
funcWorkCh := make(chan *funcWork, runtime.GOMAXPROCS(-1)*2048)
|
||||
onceInit := func() {
|
||||
n := runtime.GOMAXPROCS(-1)
|
||||
for i := 0; i < n; i++ {
|
||||
for range n {
|
||||
go funcWorker(funcWorkCh, f)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user