From ca28e43c957d053b8fc7b244f67003c00a34cb77 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 36abd7c5..89571efb 100644 --- a/src/config.rs +++ b/src/config.rs @@ -63,7 +63,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,