We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b498ea7 commit 129ba23Copy full SHA for 129ba23
raft/src/main/scala/zio/raft/Raft.scala
@@ -61,11 +61,11 @@ class Raft[S, A <: Command](
61
)
62
63
_ <- (currentState, leaderId) match
64
- case (l: Leader[S], _) =>
+ case (_: Leader[S], _) =>
65
stateNotificationsQueue.offer(StateNotification.SteppedDown(leaderId))
66
case (f: State.Follower[S], Some(leaderId)) if f.leaderId != Some(leaderId) =>
67
stateNotificationsQueue.offer(StateNotification.LeaderChanged(leaderId))
68
- case (c: State.Candidate[S], Some(leaderId)) =>
+ case (_: State.Candidate[S], Some(leaderId)) =>
69
70
case _ => ZIO.unit
71
yield newTerm
0 commit comments