createInitConnFunc creates a connection initialization function that can be used for reconnections.
()
| 1039 | |
| 1040 | // createInitConnFunc creates a connection initialization function that can be used for reconnections. |
| 1041 | func (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. |