Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Newdigate <andrew@gitlab.com>2019-02-20 18:22:51 +0300
committerAndrew Newdigate <andrew@gitlab.com>2019-02-22 10:56:46 +0300
commitecf355c711defc3096dc37eb532e279a77d882db (patch)
treed29eac80e44e09ad60c16b9f07d244db69137c14 /cmd/gitaly-ssh/upload_archive.go
parentbdafb162b31ddae5a0123d30b3138360b1fa3c83 (diff)
Support distributed tracing in gitaly-ssh
Diffstat (limited to 'cmd/gitaly-ssh/upload_archive.go')
-rw-r--r--cmd/gitaly-ssh/upload_archive.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/gitaly-ssh/upload_archive.go b/cmd/gitaly-ssh/upload_archive.go
index b7bb86466..104227d36 100644
--- a/cmd/gitaly-ssh/upload_archive.go
+++ b/cmd/gitaly-ssh/upload_archive.go
@@ -11,13 +11,13 @@ import (
"google.golang.org/grpc"
)
-func uploadArchive(conn *grpc.ClientConn, req string) (int32, error) {
+func uploadArchive(ctx context.Context, conn *grpc.ClientConn, req string) (int32, error) {
var request gitalypb.SSHUploadArchiveRequest
if err := jsonpb.UnmarshalString(req, &request); err != nil {
return 0, fmt.Errorf("json unmarshal: %v", err)
}
- ctx, cancel := context.WithCancel(context.Background())
+ ctx, cancel := context.WithCancel(ctx)
defer cancel()
return client.UploadArchive(ctx, conn, os.Stdin, os.Stdout, os.Stderr, &request)