Skip to content

Commit

Permalink
fix: sharky log
Browse files Browse the repository at this point in the history
  • Loading branch information
istae committed Oct 11, 2023
1 parent 036d364 commit baec723
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/sharky/shard.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,11 @@ func (sh *shard) offset(slot uint32) int64 {

// read reads loc.Length bytes to the buffer from the blob slot loc.Slot
func (sh *shard) read(r read) error {
_, err := sh.file.ReadAt(r.buf, sh.offset(r.slot))
return err
n, err := sh.file.ReadAt(r.buf, sh.offset(r.slot))
if err != nil {
return fmt.Errorf("read %d: %w", n, err)
}
return nil
}

// write writes loc.Length bytes to the buffer from the blob slot loc.Slot
Expand Down

0 comments on commit baec723

Please sign in to comment.