fix: AsyncRead not advancing initialised buffer

This commit is contained in:
quexeky
2026-01-21 22:20:05 +11:00
parent 1db9e6264b
commit e462fe3efd
4 changed files with 73 additions and 43 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
use std::path::Path;
use std::path::{Path, PathBuf};
use crate::{
cli::UploadInfo,
@@ -24,7 +24,7 @@ pub async fn upload(info: &UploadInfo, config: Config) -> anyhow::Result<()> {
info!("Uploading chunks");
for (id, data) in &manifest.chunks {
info!("Uploading chunk id {id}");
uploader.upload_chunk(game_id, version_id, id, data).await?;
uploader.upload_chunk(PathBuf::from(path), game_id, version_id, id, data).await?;
}
info!("Finished uploading chunks");