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

Method cleanupReplySub

js.go:800–811  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

798}
799
800func (js *js) cleanupReplySub() {
801 js.mu.Lock()
802 if js.rsub != nil {
803 js.rsub.Unsubscribe()
804 js.rsub = nil
805 }
806 if js.connStatusCh != nil {
807 close(js.connStatusCh)
808 js.connStatusCh = nil
809 }
810 js.mu.Unlock()
811}
812
813// registerPAF will register for a PubAckFuture.
814func (js *js) registerPAF(id string, paf *pubAckFuture) (int, int) {

Callers 2

CleanupPublisherMethod · 0.95
PutMethod · 0.45

Calls 1

UnsubscribeMethod · 0.80

Tested by

no test coverage detected