Remove ErrHandlerTimeout

This commit is contained in:
Adnan Maolood
2021-02-23 22:15:19 -05:00
parent f08efa330f
commit 526d232ab0
2 changed files with 1 additions and 6 deletions

View File

@@ -79,8 +79,7 @@ func StripPrefix(prefix string, h Handler) Handler {
//
// The new Handler calls h.ServeGemini to handle each request, but
// if a call runs for longer than its time limit, the handler responds with a
// 40 Temporary Failure error. After such a timeout, writes by h to its
// ResponseWriter will return ErrHandlerTimeout.
// 40 Temporary Failure error.
func TimeoutHandler(h Handler, dt time.Duration) Handler {
return &timeoutHandler{
h: h,