Fix minimal raft uptime requirement

This commit is contained in:
Ingo Oppermann 2024-06-13 16:05:15 +02:00
parent 0bf371807a
commit 8290d007b4
No known key found for this signature in database
GPG Key ID: 2AB32426E9DD229E

View File

@ -60,7 +60,7 @@ func (c *cluster) recoverCluster(ctx context.Context, interval time.Duration) {
c.leaderLock.Unlock()
uptime := c.raft.Stats().Uptime
if uptime < time.Minute {
if uptime < 2*c.recoverTimeout {
continue
}