From b53f9f5f2d579c8fe63226cf9cae381ab2bfd2bd Mon Sep 17 00:00:00 2001 From: Leon cap Date: Wed, 4 Jun 2025 23:48:37 +0800 Subject: [PATCH] fix: correct spelling of 'TimeoutHandler' in timeout handler comment (#4917) --- rest/handler/timeouthandler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {