This commit is contained in:
shenjack 2024-01-27 01:03:44 +08:00
parent 8ece5d8211
commit 196e79ed86
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,5 @@
use crate::utils::avro_data_to_file_list;
use crate::config::{ClusterByoc, Config};
use crate::utils::avro_data_to_file_list;
use crate::PROTOCOL_VERSION;
use reqwest::{Client, StatusCode};

View File

@ -2,11 +2,10 @@ use crate::cluster::{SyncFile, SyncFileList};
use std::io::Cursor;
use apache_avro::{from_avro_datum, from_value, types::Value};
use md5::{Digest, Md5};
use sha1::Sha1;
use std::path::PathBuf;
use apache_avro::{from_avro_datum, from_value, types::Value};
/// import {join} from 'path'
///
@ -52,7 +51,6 @@ pub fn validate_file(buffer: &[u8], check_sum: &str) -> bool {
}
}
/// BYD avro 格式的文件列表
pub const SYNC_FILE_LIST_SCHEMA: &str = r#"
{