MCPcopy
hub / github.com/redis/go-redis / closeTheCn

Method closeTheCn

pubsub.go:203–210  ·  view source on GitHub ↗
(reason error)

Source from the content-addressed store, hash-verified

201}
202
203func (c *PubSub) closeTheCn(reason error) error {
204 if c.cn == nil {
205 return nil
206 }
207 err := c.closeConn(c.cn)
208 c.cn = nil
209 return err
210}
211
212func (c *PubSub) Close() error {
213 c.mu.Lock()

Callers 2

reconnectMethod · 0.95
CloseMethod · 0.95

Calls 1

closeConnMethod · 0.80

Tested by

no test coverage detected