From d79d4777a88fcbf8f44771df76c4a6f1d3baa58b Mon Sep 17 00:00:00 2001 From: Nick Thomas Date: Wed, 5 May 2021 16:00:35 +0100 Subject: Respect parent context for Gitaly calls Without these changes, Gitaly calls would not be linked to a parent context. This means that they would have an unassociated correlationID, and Gitaly RPC calls would not be cancel()ed by parent context cancellation. Changelog: fixed --- internal/command/uploadpack/uploadpack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/command/uploadpack/uploadpack.go') diff --git a/internal/command/uploadpack/uploadpack.go b/internal/command/uploadpack/uploadpack.go index fca3823..82e4d6e 100644 --- a/internal/command/uploadpack/uploadpack.go +++ b/internal/command/uploadpack/uploadpack.go @@ -38,7 +38,7 @@ func (c *Command) Execute(ctx context.Context) error { return customAction.Execute(ctx, response) } - return c.performGitalyCall(response) + return c.performGitalyCall(ctx, response) } func (c *Command) verifyAccess(ctx context.Context, repo string) (*accessverifier.Response, error) { -- cgit v1.2.1