Skip to content

Commit 129ba23

Browse files
somdoronCopilot
andauthored
Update raft/src/main/scala/zio/raft/Raft.scala
Co-authored-by: Copilot <[email protected]>
1 parent b498ea7 commit 129ba23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

raft/src/main/scala/zio/raft/Raft.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ class Raft[S, A <: Command](
6161
)
6262

6363
_ <- (currentState, leaderId) match
64-
case (l: Leader[S], _) =>
64+
case (_: Leader[S], _) =>
6565
stateNotificationsQueue.offer(StateNotification.SteppedDown(leaderId))
6666
case (f: State.Follower[S], Some(leaderId)) if f.leaderId != Some(leaderId) =>
6767
stateNotificationsQueue.offer(StateNotification.LeaderChanged(leaderId))
68-
case (c: State.Candidate[S], Some(leaderId)) =>
68+
case (_: State.Candidate[S], Some(leaderId)) =>
6969
stateNotificationsQueue.offer(StateNotification.LeaderChanged(leaderId))
7070
case _ => ZIO.unit
7171
yield newTerm

0 commit comments

Comments
 (0)