Skip to content

Commit

Permalink
Merge pull request #28 from uqbar-dao/bp/vfs-func-name
Browse files Browse the repository at this point in the history
vfs: write_at -> write_all
  • Loading branch information
bitful-pannul authored Jan 12, 2024
2 parents 135a7ca + c69504c commit 64d2856
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/vfs/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ impl File {
}

/// Write buffer to file at current position, overwriting any existing data.
pub fn write_at(&mut self, buffer: &[u8]) -> anyhow::Result<()> {
pub fn write_all(&mut self, buffer: &[u8]) -> anyhow::Result<()> {
let request = VfsRequest {
path: self.path.clone(),
action: VfsAction::WriteAt,
action: VfsAction::WriteAll,
};
let message = Request::new()
.target(("our", "vfs", "sys", "nectar"))
Expand Down
2 changes: 1 addition & 1 deletion src/vfs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub enum VfsAction {
OpenFile { create: bool },
CloseFile,
Write,
WriteAt,
WriteAll,
Append,
SyncAll,
Read,
Expand Down

0 comments on commit 64d2856

Please sign in to comment.