We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8c2c56 commit bd80d6aCopy full SHA for bd80d6a
modules/private/hook.go
@@ -86,7 +86,7 @@ func newInternalRequestAPIForHooks(ctx context.Context, hookName, ownerName, rep
86
reqURL := setting.LocalURL + fmt.Sprintf("api/internal/hook/%s/%s/%s", hookName, url.PathEscape(ownerName), url.PathEscape(repoName))
87
req := newInternalRequestAPI(ctx, reqURL, "POST", opts)
88
// 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.
+ // This "timeout" was previously set to `time.Duration(60+len(opts.OldCommitIDs))` seconds, but it caused unnecessary timeout failures.
90
// It should be good enough to remove the client side timeout, only respect the "ctx" and server side timeout.
91
req.SetReadWriteTimeout(0)
92
return req
0 commit comments