From a5527ec8e9a9297251fdc615370117068f702720 Mon Sep 17 00:00:00 2001 From: Gyubong Date: Tue, 29 Aug 2023 10:50:55 +0900 Subject: [PATCH] Update raft.rs --- src/raft.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/raft.rs b/src/raft.rs index 361c6dbd..78a1d786 100644 --- a/src/raft.rs +++ b/src/raft.rs @@ -18,7 +18,7 @@ use std::cmp; use std::convert::TryFrom; use std::ops::{Deref, DerefMut}; -use crate::derializer::format_message; +use crate::derializer::{format_message, format_confchangev2}; use crate::eraftpb::{ ConfChange, ConfChangeV2, ConfState, Entry, EntryType, HardState, Message, MessageType, Snapshot, @@ -2075,7 +2075,7 @@ impl Raft { info!( self.logger, "ignoring conf change"; - "conf change" => ?cc, + "conf change" => format_confchangev2(&cc), "reason" => reason, "config" => ?self.prs.conf(), "index" => self.pending_conf_index,