diff --git a/rest/handler/timeouthandler.go b/rest/handler/timeouthandler.go index 98a8883c5..be9978fc2 100644 --- a/rest/handler/timeouthandler.go +++ b/rest/handler/timeouthandler.go @@ -106,7 +106,7 @@ func (h *timeoutHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { case <-ctx.Done(): tw.mu.Lock() defer tw.mu.Unlock() - // there isn't any user-defined middleware before TimoutHandler, + // there isn't any user-defined middleware before TimeoutHandler, // so we can guarantee that cancelation in biz related code won't come here. httpx.ErrorCtx(r.Context(), w, ctx.Err(), func(w http.ResponseWriter, err error) { if errors.Is(err, context.Canceled) {