OnPut is called when a connection is returned to the pool. It returns whether the connection should be pooled and whether it should be removed.
(ctx context.Context, conn *Conn)
| 20 | // OnPut is called when a connection is returned to the pool. |
| 21 | // It returns whether the connection should be pooled and whether it should be removed. |
| 22 | OnPut(ctx context.Context, conn *Conn) (shouldPool bool, shouldRemove bool, err error) |
| 23 | |
| 24 | // OnRemove is called when a connection is removed from the pool. |
| 25 | // This happens when: |
no outgoing calls
no test coverage detected