From ffa82a29b866d7dd1ba094471dd2d34c5d680d6f Mon Sep 17 00:00:00 2001 From: Andrew Mason Date: Sun, 17 Oct 2021 10:36:14 -0400 Subject: [PATCH] Remove unused `wr` param from `tableDiffer.diff` Signed-off-by: Andrew Mason --- go/vt/wrangler/vdiff.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go/vt/wrangler/vdiff.go b/go/vt/wrangler/vdiff.go index 613e26a93de..53dade07c1e 100644 --- a/go/vt/wrangler/vdiff.go +++ b/go/vt/wrangler/vdiff.go @@ -252,7 +252,7 @@ func (wr *Wrangler) VDiff(ctx context.Context, targetKeyspace, workflowName, sou return nil, err } // Perform the diff of source and target streams. - dr, err := td.diff(ctx, df.ts.wr, &rowsToCompare, debug, onlyPks) + dr, err := td.diff(ctx, &rowsToCompare, debug, onlyPks) if err != nil { return nil, vterrors.Wrap(err, "diff") } @@ -904,7 +904,7 @@ func humanInt(n int64) string { //----------------------------------------------------------------- // tableDiffer -func (td *tableDiffer) diff(ctx context.Context, wr *Wrangler, rowsToCompare *int64, debug, onlyPks bool) (*DiffReport, error) { +func (td *tableDiffer) diff(ctx context.Context, rowsToCompare *int64, debug, onlyPks bool) (*DiffReport, error) { sourceExecutor := newPrimitiveExecutor(ctx, td.sourcePrimitive) targetExecutor := newPrimitiveExecutor(ctx, td.targetPrimitive) dr := &DiffReport{}