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:
authorRubén Dávila <ruben@gitlab.com>2018-08-01 06:14:08 +0300
committerRubén Dávila <ruben@gitlab.com>2018-08-01 06:14:08 +0300
commit96017267c0a2ac6b2deadb6a9012a7500b82aa0b (patch)
tree8e5431a8517340f3fe22d8d3fbea68bc11a046b3
parentc97b84c8591cf25d6bb37cea98d259b462e15e3b (diff)
Fix some old reference to ListNewObjectsrd-test-new-objects-rpc
-rw-r--r--internal/service/ref/list_new_blobs.go (renamed from internal/service/ref/list_new_objects.go)14
1 files changed, 7 insertions, 7 deletions
diff --git a/internal/service/ref/list_new_objects.go b/internal/service/ref/list_new_blobs.go
index 78f6ea699..ecef69243 100644
--- a/internal/service/ref/list_new_objects.go
+++ b/internal/service/ref/list_new_blobs.go
@@ -13,13 +13,13 @@ import (
"google.golang.org/grpc/status"
)
-func (s *server) ListNewObjects(in *pb.ListNewObjectsRequest, stream pb.RefService_ListNewObjectsServer) error {
+func (s *server) ListNewBlobs(in *pb.ListNewBlobsRequest, stream pb.RefService_ListNewBlobsServer) error {
oid := in.GetCommitId()
if match, err := regexp.MatchString(`\A[0-9a-f]{40}\z`, oid); !match || err != nil {
return status.Errorf(codes.InvalidArgument, "commit id shoud have 40 hexidecimal characters")
}
- fmt.Printf("The VALUE of limit is: %d", in.limit)
+ fmt.Printf("The VALUE of limit is: %d", in.Limit)
ctx := stream.Context()
revList, err := git.Command(ctx, in.GetRepository(), "rev-list", oid, "--objects", "--all")
@@ -27,12 +27,12 @@ func (s *server) ListNewObjects(in *pb.ListNewObjectsRequest, stream pb.RefServi
if _, ok := status.FromError(err); ok {
return err
}
- return status.Errorf(codes.Internal, "ListNewObjects: gitCommand: %v", err)
+ return status.Errorf(codes.Internal, "ListNewBlobs: gitCommand: %v", err)
}
batch, err := catfile.New(ctx, in.GetRepository())
if err != nil {
- return status.Errorf(codes.Internal, "ListNewObjects: catfile: %v", err)
+ return status.Errorf(codes.Internal, "ListNewBlobs: catfile: %v", err)
}
i := 0
@@ -46,7 +46,7 @@ func (s *server) ListNewObjects(in *pb.ListNewObjectsRequest, stream pb.RefServi
path := []byte(parts[1])
info, err := batch.Info(parts[0])
if err != nil {
- return status.Errorf(codes.Internal, "ListNewObjects: catfile: %v", err)
+ return status.Errorf(codes.Internal, "ListNewBlobs: catfile: %v", err)
}
if info.Type == "blob" {
@@ -55,13 +55,13 @@ func (s *server) ListNewObjects(in *pb.ListNewObjectsRequest, stream pb.RefServi
}
if i%10 == 0 {
- response := &pb.ListNewObjectsResponse{NewBlobObjects: newBlobs}
+ response := &pb.ListNewBlobsResponse{NewBlobObjects: newBlobs}
stream.Send(response)
newBlobs = newBlobs[:0]
}
}
- response := &pb.ListNewObjectsResponse{NewBlobObjects: newBlobs}
+ response := &pb.ListNewBlobsResponse{NewBlobObjects: newBlobs}
stream.Send(response)
return revList.Wait()