Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/coder/websocket
/ close
Method
close
compress.go:210–215 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
208
}
209
210
func
(sw *slidingWindow) close() {
211
sw.buf = sw.buf[:0]
212
swPoolMu.Lock()
213
swPool[cap(sw.buf)].Put(sw)
214
swPoolMu.Unlock()
215
}
216
217
func
(sw *slidingWindow) write(p []byte) {
218
if
len(p) >= cap(sw.buf) {
Callers
nothing calls this directly
Calls
1
Lock
Method · 0.45
Tested by
no test coverage detected