From 7c475e513e54bbd2effdc38a1ea6aaecd5001da6 Mon Sep 17 00:00:00 2001 From: Owen Diehl Date: Fri, 22 Nov 2024 14:38:14 +0800 Subject: [PATCH] more linting --- pkg/blockbuilder/controller.go | 2 +- pkg/blockbuilder/writer.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/blockbuilder/controller.go b/pkg/blockbuilder/controller.go index f655761b1629..f252b3d65744 100644 --- a/pkg/blockbuilder/controller.go +++ b/pkg/blockbuilder/controller.go @@ -256,7 +256,7 @@ func (d *dummyPartitionController) HighestPartitionOffset(_ context.Context) (in return d.highest, nil } -func (d *dummyPartitionController) Commit(ctx context.Context, offset int64) error { +func (d *dummyPartitionController) Commit(_ context.Context, offset int64) error { d.committed = offset return nil } diff --git a/pkg/blockbuilder/writer.go b/pkg/blockbuilder/writer.go index edf234f63be4..e60ab8d9fb9d 100644 --- a/pkg/blockbuilder/writer.go +++ b/pkg/blockbuilder/writer.go @@ -15,10 +15,10 @@ type kafkaConsumer struct { decoder *kafka.Decoder } -func (c *kafkaConsumer) Write(ctx context.Context, req *push.PushRequest) error { +func (c *kafkaConsumer) Write(_ context.Context, req *push.PushRequest) error { return nil } -func (c *kafkaConsumer) Commit(ctx context.Context) error { +func (c *kafkaConsumer) Commit(_ context.Context) error { return nil }