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

Method enqueue

internal/pool/want_conn.go:82–86  ·  view source on GitHub ↗
(w *wantConn)

Source from the content-addressed store, hash-verified

80}
81
82func (q *wantConnQueue) enqueue(w *wantConn) {
83 q.mu.Lock()
84 defer q.mu.Unlock()
85 q.items = append(q.items, w)
86}
87
88func (q *wantConnQueue) dequeue() (*wantConn, bool) {
89 q.mu.Lock()

Calls

no outgoing calls