Skip to content

Commit

Permalink
Fix rate limiter raft panic. Fixes #1494
Browse files Browse the repository at this point in the history
  • Loading branch information
plorenz committed Nov 2, 2023
1 parent 17d14de commit f40b8f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controller/raft/raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,9 @@ func (self *Controller) ApplyWithTimeout(log []byte, timeout time.Duration) (int
return err
}

returnValue.Store(f.Response())
if response := f.Response(); response != nil {
returnValue.Store(response)
}
index.Store(f.Index())
return nil
})
Expand Down

0 comments on commit f40b8f6

Please sign in to comment.