Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/nats-io/nats.go
/ buffered
Method
buffered
nats.go:2221–2226 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
2219
}
2220
2221
func
(w *natsWriter) buffered() int {
2222
if
w.pending != nil {
2223
return
w.pending.Len()
2224
}
2225
return
len(w.bufs)
2226
}
2227
2228
func
(w *natsWriter) switchToPending() {
2229
w.pending = new(bytes.Buffer)
Callers
2
flusher
Method · 0.80
Buffered
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected