(after time.Duration)
| 77 | } |
| 78 | |
| 79 | func newRequestTimeoutError(after time.Duration) errctx.Error { |
| 80 | return RequestTimeoutError{errctx.NewTextError( |
| 81 | fmt.Sprintf("Request was timed out after %v", after), |
| 82 | 1, |
| 83 | errctx.WithStatusCode(http.StatusServiceUnavailable), |
| 84 | errctx.WithPublicMessage("Timeout"), |
| 85 | errctx.WithShouldReport(false), |
| 86 | )} |
| 87 | } |
| 88 | |
| 89 | func (e RequestTimeoutError) Unwrap() error { |
| 90 | return context.DeadlineExceeded |
no test coverage detected