From 196e79ed8613359229869523940ee0acff89687e Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 27 Jan 2024 01:03:44 +0800 Subject: [PATCH] fmt --- src/cluster.rs | 2 +- src/utils.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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#" {