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

Method connWithLock

pubsub.go:67–72  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

65}
66
67func (c *PubSub) connWithLock(ctx context.Context) (*pool.Conn, error) {
68 c.mu.Lock()
69 cn, err := c.conn(ctx, nil)
70 c.mu.Unlock()
71 return cn, err
72}
73
74func (c *PubSub) conn(ctx context.Context, newChannels []string) (*pool.Conn, error) {
75 if c.closed {

Callers 1

ReceiveTimeoutMethod · 0.95

Calls 1

connMethod · 0.95

Tested by

no test coverage detected