From 4a66f91bf8e47936cabe9cdf0a8b1fa64b81a385 Mon Sep 17 00:00:00 2001 From: soma00333 Date: Sun, 17 Nov 2024 14:17:01 +0900 Subject: [PATCH] breaking: Remove TickQuiesced() method Signed-off-by: soma00333 --- rawnode.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/rawnode.go b/rawnode.go index a4da2ae2..ced39c02 100644 --- a/rawnode.go +++ b/rawnode.go @@ -65,20 +65,6 @@ func (rn *RawNode) Tick() { rn.raft.tick() } -// TickQuiesced advances the internal logical clock by a single tick without -// performing any other state machine processing. It allows the caller to avoid -// periodic heartbeats and elections when all of the peers in a Raft group are -// known to be at the same state. Expected usage is to periodically invoke Tick -// or TickQuiesced depending on whether the group is "active" or "quiesced". -// -// WARNING: Be very careful about using this method as it subverts the Raft -// state machine. You should probably be using Tick instead. -// -// DEPRECATED: This method will be removed in a future release. -func (rn *RawNode) TickQuiesced() { - rn.raft.electionElapsed++ -} - // Campaign causes this RawNode to transition to candidate state. func (rn *RawNode) Campaign() error { return rn.raft.Step(pb.Message{