Skip to content

Commit

Permalink
example fix due to API change for File::close()
Browse files Browse the repository at this point in the history
  • Loading branch information
henricasanova committed Oct 11, 2024
1 parent 156caca commit d8f7eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/open_seek_write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class FileWriterActor {
XBT_INFO("Writing %llu to it at offset %llu...", num_bytes_, offset_);
file->write(num_bytes_);
XBT_INFO("Closing file...");
fs_->close(file);
file->close();
XBT_INFO("The file size it: %llu", fs_->file_size(file_path_));
}
};
Expand Down

0 comments on commit d8f7eb6

Please sign in to comment.