Skip to content

Commit

Permalink
Perf minio config file name
Browse files Browse the repository at this point in the history
  • Loading branch information
akamya997 committed Jan 23, 2024
1 parent bfa10c3 commit 077c5e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion judger/src/service/package_manager/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ fn check_rclone(config_path: &Path) -> Result<(), JudgeServiceError> {
}

pub const PACKAGE_SAVE_DIRNAME: &str = "rclone-problem-package";
pub const RCLONE_CONFIG_FILE: &str = "rclone-minio.conf";

pub fn sync_package(data_dir: &Path, bucket_name: &str) -> Result<(), JudgeServiceError> {
let config_path = data_dir.join("rclone-minio.conf");
let config_path = data_dir.join(RCLONE_CONFIG_FILE);
let package_path = data_dir.join(PACKAGE_SAVE_DIRNAME);
let check_res = check_rclone(&config_path);
if check_res.as_ref().is_err() {
Expand Down

0 comments on commit 077c5e4

Please sign in to comment.