From c3789f2a88121ce87920975a78c4aaeb066796c1 Mon Sep 17 00:00:00 2001 From: Will Scott Date: Thu, 4 Aug 2022 16:29:56 +0200 Subject: [PATCH] rename per code review --- v2/selective.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2/selective.go b/v2/selective.go index 620f9dcb..9f128525 100644 --- a/v2/selective.go +++ b/v2/selective.go @@ -142,8 +142,8 @@ func TraverseV1(ctx context.Context, ls *ipld.LinkSystem, root cid.Cid, selector return len, err } -// CreateV1Reader creates an io.ReadSeeker that can be used to copy out the carv1 contents of a car. -func CreateV1Reader(ctx context.Context, ls *ipld.LinkSystem, root cid.Cid, selector ipld.Node, opts ...Option) (io.ReadSeeker, error) { +// NewCarV1StreamReader creates an io.ReadSeeker that can be used to copy out the carv1 contents of a car. +func NewCarV1StreamReader(ctx context.Context, ls *ipld.LinkSystem, root cid.Cid, selector ipld.Node, opts ...Option) (io.ReadSeeker, error) { opts = append(opts, WithoutIndex()) conf := ApplyOptions(opts...) tc := traversalCar{