func findBranchesBenchmark()

in operations/find-branches.go [47:66]


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

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

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