mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-12 06:48:45 +01:00
fmt
This commit is contained in:
1 parent
82705a214f
commit
92d6bbe575
1 file changed
+5
-5
@@ -112,15 +112,15 @@ func (h *Handler) handleFetch(correlationID uint32, apiVersion uint16, requestBo
|
|||||||
// Use multi-batch fetcher for better MaxBytes compliance
|
// Use multi-batch fetcher for better MaxBytes compliance
|
||||||
multiFetcher := NewMultiBatchFetcher(h)
|
multiFetcher := NewMultiBatchFetcher(h)
|
||||||
result, err := multiFetcher.FetchMultipleBatches(
|
result, err := multiFetcher.FetchMultipleBatches(
|
||||||
topic.Name,
|
topic.Name,
|
||||||
partition.PartitionID,
|
partition.PartitionID,
|
||||||
partition.FetchOffset,
|
partition.FetchOffset,
|
||||||
highWaterMark,
|
highWaterMark,
|
||||||
partition.MaxBytes,
|
partition.MaxBytes,
|
||||||
)
|
)
|
||||||
|
|
||||||
if err == nil && result.TotalSize > 0 {
|
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)
|
result.BatchCount, result.TotalSize, result.NextOffset)
|
||||||
recordBatch = result.RecordBatches
|
recordBatch = result.RecordBatches
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in new issue
Block a user