refactor: simplifying to ReadAt() and WriteAt()
This commit is contained in:
@@ -154,7 +154,7 @@ func (n *Needle) Append(w *os.File, version Version) (offset uint64, size uint32
|
||||
if exists {
|
||||
mMap.WriteMemory(offset, uint64(len(bytesToWrite)), bytesToWrite)
|
||||
} else {
|
||||
_, err = w.Write(bytesToWrite)
|
||||
_, err = w.WriteAt(bytesToWrite, int64(offset))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user