Skip to content

Commit

Permalink
making callback work
Browse files Browse the repository at this point in the history
  • Loading branch information
vadlakondaswetha committed Oct 9, 2024
1 parent 3bff832 commit b64cd1e
Show file tree
Hide file tree
Showing 5 changed files with 118 additions and 112 deletions.
2 changes: 1 addition & 1 deletion internal/block/buffered_write_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (wh *BufferedWriteHandler) Write(data []byte, offset int64) (err error) {

if offset != wh.totalSize {
// TODO: We encountered a non-sequential write, finalize and throw a custom error.
return fmt.Errorf("non sequential writes")
return fmt.Errorf("non sequential writes, offset :%d, totalSize: %d", offset, wh.totalSize)
}

for dataWritten < len(data) {
Expand Down
Loading

0 comments on commit b64cd1e

Please sign in to comment.