Skip to content

Commit

Permalink
breaking: Remove TickQuiesced() method
Browse files Browse the repository at this point in the history
  • Loading branch information
soma00333 committed Nov 17, 2024
1 parent d155efc commit 2dc2c6c
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions rawnode.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 2dc2c6c

Please sign in to comment.