newContextAlreadyDoneError double-wraps a context error in `contextAlreadyDoneError` and `errTimeout`.
(ctx context.Context)
| 224 | |
| 225 | // newContextAlreadyDoneError double-wraps a context error in `contextAlreadyDoneError` and `errTimeout`. |
| 226 | func newContextAlreadyDoneError(ctx context.Context) (err error) { |
| 227 | return &errTimeout{&contextAlreadyDoneError{err: ctx.Err()}} |
| 228 | } |
| 229 | |
| 230 | func redactPW(connString string) string { |
| 231 | if strings.HasPrefix(connString, "postgres://") || strings.HasPrefix(connString, "postgresql://") { |
no test coverage detected