Skip to content

Commit 64d2856

Browse files
authored
Merge pull request #28 from uqbar-dao/bp/vfs-func-name
vfs: write_at -> write_all
2 parents 135a7ca + c69504c commit 64d2856

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/vfs/file.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,10 @@ impl File {
192192
}
193193

194194
/// Write buffer to file at current position, overwriting any existing data.
195-
pub fn write_at(&mut self, buffer: &[u8]) -> anyhow::Result<()> {
195+
pub fn write_all(&mut self, buffer: &[u8]) -> anyhow::Result<()> {
196196
let request = VfsRequest {
197197
path: self.path.clone(),
198-
action: VfsAction::WriteAt,
198+
action: VfsAction::WriteAll,
199199
};
200200
let message = Request::new()
201201
.target(("our", "vfs", "sys", "nectar"))

src/vfs/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub enum VfsAction {
2626
OpenFile { create: bool },
2727
CloseFile,
2828
Write,
29-
WriteAt,
29+
WriteAll,
3030
Append,
3131
SyncAll,
3232
Read,

0 commit comments

Comments
 (0)