Skip to content

Commit

Permalink
Update comments and test names
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitar Dimitrov <[email protected]>
  • Loading branch information
dimitarvdimitrov committed Nov 14, 2024
1 parent 0a58a36 commit 135b872
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/storage/ingest/fetcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ func TestConcurrentFetchers(t *testing.T) {
t.Logf("Records fetched: %d", len(fetchedRecords))
})

t.Run("staggered production with exact multiple of concurrency and records per fetch", func(t *testing.T) {
t.Run("staggered production", func(t *testing.T) {
t.Parallel()

ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/ingest/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ func (r *PartitionReader) switchToOngoingFetcher(ctx context.Context) {
}

if r.kafkaCfg.StartupFetchConcurrency > 0 && r.kafkaCfg.OngoingFetchConcurrency > 0 {
// No need to switch the fetcher, just update the records per fetch.
// No need to switch the fetcher, just update the concurrency.
r.getFetcher().Update(ctx, r.kafkaCfg.OngoingFetchConcurrency)
return
}
Expand Down

0 comments on commit 135b872

Please sign in to comment.