From aff39d8e93727084c51cf869d0987179edb35388 Mon Sep 17 00:00:00 2001 From: rmqtt Date: Tue, 29 Nov 2022 00:07:36 +0800 Subject: [PATCH] raft_addr => raft_laddr --- examples/rmqttraft-warp-memstore/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/rmqttraft-warp-memstore/src/main.rs b/examples/rmqttraft-warp-memstore/src/main.rs index 865255d..efaed3d 100644 --- a/examples/rmqttraft-warp-memstore/src/main.rs +++ b/examples/rmqttraft-warp-memstore/src/main.rs @@ -23,7 +23,7 @@ struct Options { #[structopt(long)] id: u64, #[structopt(long)] - raft_addr: String, + raft_laddr: String, #[structopt(name = "peer-addr", long)] peer_addrs: Vec, #[structopt(long)] @@ -180,7 +180,7 @@ async fn main() -> std::result::Result<(), Box> { let cfg = Config { ..Default::default() }; - let raft = Raft::new(options.raft_addr, store.clone(), logger.clone(), cfg); + let raft = Raft::new(options.raft_laddr, store.clone(), logger.clone(), cfg); let leader_info = raft.find_leader_info(options.peer_addrs).await?; info!(logger, "leader_info: {:?}", leader_info);