Skip to content

Commit bd80d6a

Browse files
authored
Update modules/private/hook.go
1 parent a8c2c56 commit bd80d6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/private/hook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func newInternalRequestAPIForHooks(ctx context.Context, hookName, ownerName, rep
8686
reqURL := setting.LocalURL + fmt.Sprintf("api/internal/hook/%s/%s/%s", hookName, url.PathEscape(ownerName), url.PathEscape(repoName))
8787
req := newInternalRequestAPI(ctx, reqURL, "POST", opts)
8888
// This "timeout" applies to http.Client's timeout: A Timeout of zero means no timeout.
89-
// This "timeout" was ever set to `time.Duration(60+len(opts.OldCommitIDs))` seconds, but it caused unnecessary timeout failures.
89+
// This "timeout" was previously set to `time.Duration(60+len(opts.OldCommitIDs))` seconds, but it caused unnecessary timeout failures.
9090
// It should be good enough to remove the client side timeout, only respect the "ctx" and server side timeout.
9191
req.SetReadWriteTimeout(0)
9292
return req

0 commit comments

Comments
 (0)