func findBranchNamesBenchmark()

in operations/find-branches.go [26:45]


func findBranchNamesBenchmark(b fbn) error {
	request := &pb.FindAllBranchNamesRequest{
		Repository: b.repository,
	}

	stream, err := b.client.FindAllBranchNames(context.Background(), request)
	if err != nil {
		return err
	}

	for {
		_, err := stream.Recv()
		if err == io.EOF {
			return nil
		}
		if err != nil {
			return err
		}
	}
}