From c85c7327bfbc41302165579ac77cbe1970400ad4 Mon Sep 17 00:00:00 2001 From: miyuko Date: Mon, 2 Mar 2026 23:23:56 +0000 Subject: [PATCH] Reword the code comment regarding the webhook delivery timer. --- src/pages.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages.go b/src/pages.go index 012be8d..12ac700 100644 --- a/src/pages.go +++ b/src/pages.go @@ -681,7 +681,9 @@ func deletePage(w http.ResponseWriter, r *http.Request) error { } func postPage(w http.ResponseWriter, r *http.Request) error { - // Start a timer for the request timeout immediately. + // The HTTP requests for webhook delivery usually have a short timeout. We start the timer + // before doing any time-consuming work so that it's closely aligned to the client's timeout and + // we can respond before the webhook delivery is considered failed. requestTimeout := 3 * time.Second requestTimer := time.NewTimer(requestTimeout)