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

Method setup

nats.go:2687–2697  ·  view source on GitHub ↗

Low level setup for structs, etc

()

Source from the content-addressed store, hash-verified

2685
2686// Low level setup for structs, etc
2687func (nc *Conn) setup() {
2688 nc.subs = make(map[int64]*Subscription)
2689 nc.pongs = make([]chan struct{}, 0, 8)
2690
2691 nc.fch = make(chan struct{}, flushChanSize)
2692 nc.rqch = make(chan struct{})
2693
2694 // Setup scratch outbound buffer for PUB/HPUB
2695 pub := nc.scratch[:len(_HPUB_P_)]
2696 copy(pub, _HPUB_P_)
2697}
2698
2699// tlsHandshakeEOF wraps an error with context when it occurs right after
2700// a completed TLS handshake, which typically indicates the remote side

Callers 1

connectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected