MCPcopy
hub / github.com/nats-io/nats.go / switchToPending

Method switchToPending

nats.go:2228–2230  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2226}
2227
2228func (w *natsWriter) switchToPending() {
2229 w.pending = new(bytes.Buffer)
2230}
2231
2232func (w *natsWriter) flushPendingBuffer() error {
2233 if w.pending == nil || w.pending.Len() == 0 {

Callers 5

TestParserPingFunction · 0.80
TestParserErrFunction · 0.80
ForceReconnectMethod · 0.80
connectMethod · 0.80
processOpErrMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestParserPingFunction · 0.64
TestParserErrFunction · 0.64