Skip to content

Commit

Permalink
don't store concurrency or records per fetch
Browse files Browse the repository at this point in the history
Signed-off-by: gotjosh <[email protected]>
  • Loading branch information
gotjosh committed Sep 26, 2024
1 parent 010eb62 commit 918256c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/storage/ingest/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -953,11 +953,9 @@ func newConcurrentFetchers(
f := &concurrentFetchers{
client: client,
logger: logger,
concurrency: concurrency,
topicName: topic,
partitionID: partition,
metrics: metrics,
recordsPerFetch: recordsPerFetch,
minBytesWaitTime: minBytesWaitTime,
lastReturnedRecord: noReturnedRecords,
startOffsets: startOffsetsReader,
Expand Down Expand Up @@ -996,10 +994,6 @@ func newConcurrentFetchers(
}

func (r *concurrentFetchers) Update(ctx context.Context, concurrency, records int) {
if r.concurrency == concurrency && r.recordsPerFetch == records {
return
}

r.Stop()
r.done = make(chan struct{})

Expand Down

0 comments on commit 918256c

Please sign in to comment.