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

Method newWriter

nats.go:2168–2174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2166}
2167
2168func (nc *Conn) newWriter() io.Writer {
2169 var w io.Writer = nc.conn
2170 if nc.Opts.FlusherTimeout > 0 {
2171 w = &timeoutWriter{conn: nc.conn, timeout: nc.Opts.FlusherTimeout}
2172 }
2173 return w
2174}
2175
2176func (w *natsWriter) appendString(str string) error {
2177 return w.appendBufs([]byte(str))

Callers 1

bindToNewConnMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected