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

Method releaseConnWithLock

pubsub.go:158–167  ·  view source on GitHub ↗
(
	ctx context.Context,
	cn *pool.Conn,
	err error,
	allowTimeout bool,
)

Source from the content-addressed store, hash-verified

156}
157
158func (c *PubSub) releaseConnWithLock(
159 ctx context.Context,
160 cn *pool.Conn,
161 err error,
162 allowTimeout bool,
163) {
164 c.mu.Lock()
165 c.releaseConn(ctx, cn, err, allowTimeout)
166 c.mu.Unlock()
167}
168
169func (c *PubSub) releaseConn(ctx context.Context, cn *pool.Conn, err error, allowTimeout bool) {
170 if c.cn != cn {

Callers 1

ReceiveTimeoutMethod · 0.95

Calls 1

releaseConnMethod · 0.95

Tested by

no test coverage detected