Skip to content

Commit

Permalink
refactor(raft): remove unused code (#5552)
Browse files Browse the repository at this point in the history
The `state` is not used here. 

Signed-off-by: Jay Chung <[email protected]>
  • Loading branch information
derekcollison authored Jun 17, 2024
2 parents df801af + 87b2d8a commit acdb457
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions server/raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -1029,9 +1029,6 @@ func (n *raft) InstallSnapshot(data []byte) error {
return errCatchupsRunning
}

var state StreamState
n.wal.FastState(&state)

if n.applied == 0 {
return errNoSnapAvailable
}
Expand Down

0 comments on commit acdb457

Please sign in to comment.