MCPcopy Create free account
hub / github.com/CyCoreSystems/ari-proxy / close

Method close

client/client.go:112–126  ·  view source on GitHub ↗

close shuts down the core

()

Source from the content-addressed store, hash-verified

110
111// close shuts down the core
112func (c *core) close() {
113 if !c.closed {
114 c.closed = true
115 close(c.closeChan)
116 }
117
118 if c.annSub != nil {
119 err := c.annSub.Unsubscribe()
120 if err != nil {
121 c.log.Debug("failed to unsubscribe from proxy announcements", "error", err)
122 }
123 }
124
125 c.mbus.Close()
126}
127
128func (c *core) Start() error {
129 // increment the client reference counter

Callers 2

ClientClosedMethod · 0.95
StartMethod · 0.95

Calls 2

UnsubscribeMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected