Optimization FileReader

This commit is contained in:
weisd
2024-11-02 23:36:04 +08:00
parent 2c26ea534f
commit 71d4f1568f
4 changed files with 14 additions and 18 deletions
+1 -1
View File
@@ -346,7 +346,7 @@ impl Erasure {
}
#[async_trait::async_trait]
pub trait Write {
pub trait Writer {
fn as_any(&self) -> &dyn Any;
async fn write(&mut self, buf: &[u8]) -> Result<()>;
async fn close(&mut self) -> Result<()> {