Skip to content

Commit 4a66f91

Browse files
committed
breaking: Remove TickQuiesced() method
Signed-off-by: soma00333 <[email protected]>
1 parent d155efc commit 4a66f91

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

rawnode.go

-14
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,6 @@ func (rn *RawNode) Tick() {
6565
rn.raft.tick()
6666
}
6767

68-
// TickQuiesced advances the internal logical clock by a single tick without
69-
// performing any other state machine processing. It allows the caller to avoid
70-
// periodic heartbeats and elections when all of the peers in a Raft group are
71-
// known to be at the same state. Expected usage is to periodically invoke Tick
72-
// or TickQuiesced depending on whether the group is "active" or "quiesced".
73-
//
74-
// WARNING: Be very careful about using this method as it subverts the Raft
75-
// state machine. You should probably be using Tick instead.
76-
//
77-
// DEPRECATED: This method will be removed in a future release.
78-
func (rn *RawNode) TickQuiesced() {
79-
rn.raft.electionElapsed++
80-
}
81-
8268
// Campaign causes this RawNode to transition to candidate state.
8369
func (rn *RawNode) Campaign() error {
8470
return rn.raft.Step(pb.Message{

0 commit comments

Comments
 (0)