refactor: Remove ConfigItem

This commit is contained in:
quexeky
2026-01-20 19:02:54 +11:00
parent bf35f66961
commit 38e8ac4839
19 changed files with 178 additions and 163 deletions
+4 -1
View File
@@ -1,7 +1,10 @@
use std::path::Path;
use crate::{
cli::UploadInfo, commands::upload::{s3::S3, uploadable::Uploadable}, config::config::Config, manifest::generate_manifest
cli::UploadInfo,
commands::config::config::Config,
commands::upload::{s3::S3, uploadable::Uploadable},
manifest::generate_manifest,
};
use log::info;
+2 -1
View File
@@ -1,8 +1,9 @@
use crate::{
commands::config::s3::S3Config,
commands::upload::{
speedtest::{SPEEDTEST_PATH, Speedtest},
uploadable::Uploadable,
}, config::s3::S3Config,
},
};
use async_trait::async_trait;
use droplet_rs::manifest::{ChunkData, Manifest};
+1 -1
View File
@@ -30,4 +30,4 @@ impl Speedtest {
to_write: SPEEDTEST_BYTES,
}
}
}
}
+6 -1
View File
@@ -11,5 +11,10 @@ pub trait Uploadable {
chunk: &ChunkData,
) -> anyhow::Result<()>;
async fn upload_speedtest(&mut self) -> anyhow::Result<()>;
async fn upload_manifest(&mut self, manifest: Manifest, game_id: &String, version_id: &String) -> anyhow::Result<()>;
async fn upload_manifest(
&mut self,
manifest: Manifest,
game_id: &String,
version_id: &String,
) -> anyhow::Result<()>;
}