This commit is contained in:
bluepython508 committed 2026-10-22 12:27:19 +01:00
1 parent 3530afb854
commit 6903fcff27
2146 files changed
+112256 -190703

No files matched your search

+4 -3
View File
@@ -1,5 +1,4 @@
//go:build !js
// +build !js
package websocket
@@ -168,8 +167,10 @@ type slidingWindow struct {
buf []byte
}
var swPoolMu sync.RWMutex
var swPool = map[int]*sync.Pool{}
var (
swPoolMu sync.RWMutex
swPool = map[int]*sync.Pool{}
)
func slidingWindowPool(n int) *sync.Pool {
swPoolMu.RLock()