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

Method isDrainingPubs

nats.go:6277–6279  ·  view source on GitHub ↗

Test if Conn is in the draining state for pubs.

()

Source from the content-addressed store, hash-verified

6275
6276// Test if Conn is in the draining state for pubs.
6277func (nc *Conn) isDrainingPubs() bool {
6278 return nc.status == DRAINING_PUBS
6279}
6280
6281// Stats will return a race safe copy of the Statistics section for the connection.
6282func (nc *Conn) Stats() Statistics {

Callers 1

publishMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected