diff --git a/src/cluster.rs b/src/cluster.rs index fa055ed..68071f9 100644 --- a/src/cluster.rs +++ b/src/cluster.rs @@ -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}; diff --git a/src/utils.rs b/src/utils.rs index a12bc15..8283270 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -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#" {