mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-12 01:20:45 +02:00
fmt
This commit is contained in:
@@ -112,15 +112,15 @@ func (h *Handler) handleFetch(correlationID uint32, apiVersion uint16, requestBo
|
||||
// Use multi-batch fetcher for better MaxBytes compliance
|
||||
multiFetcher := NewMultiBatchFetcher(h)
|
||||
result, err := multiFetcher.FetchMultipleBatches(
|
||||
topic.Name,
|
||||
partition.PartitionID,
|
||||
partition.FetchOffset,
|
||||
highWaterMark,
|
||||
topic.Name,
|
||||
partition.PartitionID,
|
||||
partition.FetchOffset,
|
||||
highWaterMark,
|
||||
partition.MaxBytes,
|
||||
)
|
||||
|
||||
if err == nil && result.TotalSize > 0 {
|
||||
fmt.Printf("DEBUG: Multi-batch result - %d batches, %d bytes, next offset %d\n",
|
||||
fmt.Printf("DEBUG: Multi-batch result - %d batches, %d bytes, next offset %d\n",
|
||||
result.BatchCount, result.TotalSize, result.NextOffset)
|
||||
recordBatch = result.RecordBatches
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user