Rename AsyncExtracter::write to feed

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-09 22:09:46 +10:00
parent 432376224f
commit 8a812c8d22
No known key found for this signature in database
GPG key ID: 591C0B03040416D6
2 changed files with 6 additions and 6 deletions

View file

@ -74,7 +74,7 @@ pub async fn download_and_extract<P: AsRef<Path>, const N: usize>(
let mut extracter = AsyncExtracter::new(path, fmt, desired_outputs);
while let Some(res) = bytes_stream.next().await {
extracter.write(res?).await?;
extracter.feed(res?).await?;
}
extracter.done().await?;