From 37f3e7911add18f16828933616945b422125bd9b Mon Sep 17 00:00:00 2001 From: yanghong Date: Wed, 11 Oct 2023 21:40:13 +0800 Subject: [PATCH] fix typo --- src/config.rs | 2 +- src/protocol.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/config.rs b/src/config.rs index 84a5f55d..345d4b9f 100644 --- a/src/config.rs +++ b/src/config.rs @@ -61,7 +61,7 @@ pub struct ClientServiceConfig { #[serde(skip)] pub name: String, pub local_addr: String, - pub recommend_blind_addr: Option, + pub recommend_bind_addr: Option, pub token: Option, pub nodelay: Option, pub retry_interval: Option, diff --git a/src/protocol.rs b/src/protocol.rs index 1abc3ce3..47050553 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -1,6 +1,6 @@ pub const HASH_WIDTH_IN_BYTES: usize = 32; -use anyhow::{bail, Context, Result, anyhow}; +use anyhow::{bail, Context, Result}; use bytes::{Bytes, BytesMut}; use lazy_static::lazy_static; use serde::{Deserialize, Serialize}; @@ -227,9 +227,9 @@ pub async fn read_server_service_config_from_client bind_addr, - None => return Err(anyhow!(format!("Expect 'recommend_blind_addr' in {}", config.name))), + None => return Err(anyhow::anyhow!(format!("Expect 'recommend_bind_addr' in {}", config.name))), }, service_type: config.service_type, name: config.name,