Skip to content

Commit bb9ab13

Browse files
committed
fix linter
1 parent 46c731e commit bb9ab13

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

internal/topic/topicreaderinternal/committer.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,12 @@ type committer struct {
5252
commits CommitRanges
5353
}
5454

55-
func newCommitterStopped(tracer *trace.Topic, lifeContext context.Context, mode PublicCommitMode, send sendMessageToServerFunc, readerID int64) *committer { //nolint:lll,revive
55+
func newCommitterStopped(
56+
tracer *trace.Topic,
57+
lifeContext context.Context, //nolint:revive
58+
mode PublicCommitMode,
59+
send sendMessageToServerFunc,
60+
) *committer {
5661
res := &committer{
5762
mode: mode,
5863
clock: clockwork.NewRealClock(),

internal/topic/topicreaderinternal/committer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ func TestCommitterBuffer(t *testing.T) {
379379
func newTestCommitter(ctx context.Context, t testing.TB) *committer {
380380
res := newCommitterStopped(&trace.Topic{}, ctx, CommitModeAsync, func(msg rawtopicreader.ClientMessage) error {
381381
return nil
382-
}, -1)
382+
})
383383
res.Start()
384384
t.Cleanup(func() {
385385
if err := res.Close(ctx, errors.New("test committer closed")); err != nil {

internal/topic/topicreaderinternal/stream_reader_impl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func newTopicStreamReaderStopped(
158158

159159
res.backgroundWorkers = *background.NewWorker(stopPump, "topic-reader-stream-background")
160160

161-
res.committer = newCommitterStopped(cfg.Trace, labeledContext, cfg.CommitMode, res.send, res.readerID)
161+
res.committer = newCommitterStopped(cfg.Trace, labeledContext, cfg.CommitMode, res.send)
162162
res.committer.BufferTimeLagTrigger = cfg.CommitterBatchTimeLag
163163
res.committer.BufferCountTrigger = cfg.CommitterBatchCounterTrigger
164164
res.sessionController.init()

0 commit comments

Comments
 (0)