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

Method createInitConnFunc

redis.go:1041–1045  ·  view source on GitHub ↗

createInitConnFunc creates a connection initialization function that can be used for reconnections.

()

Source from the content-addressed store, hash-verified

1039
1040// createInitConnFunc creates a connection initialization function that can be used for reconnections.
1041func (c *baseClient) createInitConnFunc() func(context.Context, *pool.Conn) error {
1042 return func(ctx context.Context, cn *pool.Conn) error {
1043 return c.initConn(ctx, cn)
1044 }
1045}
1046
1047// enableMaintNotificationsUpgrades initializes the maintnotifications upgrade manager and pool hook.
1048// This function is called during client initialization.

Callers 1

initConnMethod · 0.95

Calls 1

initConnMethod · 0.95

Tested by

no test coverage detected