Fix noinlineerr findings: internal/chunker (refs #61)

This commit is contained in:
2026-08-07 16:59:56 +00:00
parent 2dfdc5f095
commit 26909b058a
2 changed files with 9 additions and 4 deletions

View File

@@ -121,12 +121,13 @@ func (c *Chunker) ChunkReaderStreaming(r io.Reader, callback ChunkCallback) (str
// Pass the data directly - caller must process it before we call Next() again
// (chunker reuses its internal buffer, but since we process synchronously
// and completely before continuing, no copy is needed)
if err := callback(Chunk{
err = callback(Chunk{
Hash: hex.EncodeToString(hash[:]),
Data: chunk.Data,
Offset: offset,
Size: int64(len(chunk.Data)),
}); err != nil {
})
if err != nil {
return "", fmt.Errorf("callback error: %w", err)
}