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:
Diffstat (limited to 'internal/service/repository/server.go')
-rw-r--r--internal/service/repository/server.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/service/repository/server.go b/internal/service/repository/server.go
index 563b9c2a1..037d432be 100644
--- a/internal/service/repository/server.go
+++ b/internal/service/repository/server.go
@@ -4,6 +4,7 @@ import (
"context"
"sync"
+ "gitlab.com/gitlab-org/gitaly/internal/config"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
"gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
@@ -16,11 +17,12 @@ type server struct {
connsByAddress map[string]*grpc.ClientConn
connsMtx sync.RWMutex
internalGitalySocket string
+ storages config.Storages
}
// NewServer creates a new instance of a gRPC repo server
-func NewServer(rs *rubyserver.Server, internalGitalySocket string) gitalypb.RepositoryServiceServer {
- return &server{ruby: rs, connsByAddress: make(map[string]*grpc.ClientConn), internalGitalySocket: internalGitalySocket}
+func NewServer(rs *rubyserver.Server, storages config.Storages, internalGitalySocket string) gitalypb.RepositoryServiceServer {
+ return &server{ruby: rs, connsByAddress: make(map[string]*grpc.ClientConn), storages: storages, internalGitalySocket: internalGitalySocket}
}
func (*server) FetchHTTPRemote(context.Context, *gitalypb.FetchHTTPRemoteRequest) (*gitalypb.FetchHTTPRemoteResponse, error) {