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

Method SetNetConn

export_test.go:18–20  ·  view source on GitHub ↗
(netConn net.Conn)

Source from the content-addressed store, hash-verified

16}
17
18func (c *PubSub) SetNetConn(netConn net.Conn) {
19 c.cn = pool.NewConn(netConn)
20}
21
22func (c *ClusterClient) LoadState(ctx context.Context) (*clusterState, error) {
23 // return c.state.Reload(ctx)

Callers 4

pubsub_test.goFile · 0.45
tx_test.goFile · 0.45
redis_test.goFile · 0.45
pool_test.goFile · 0.45

Calls 1

NewConnFunction · 0.92

Tested by

no test coverage detected