diff options
| -rw-r--r-- | internal/quorum/quorum.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/quorum/quorum.go b/internal/quorum/quorum.go index 6c4bcb6..01c861a 100644 --- a/internal/quorum/quorum.go +++ b/internal/quorum/quorum.go @@ -91,6 +91,9 @@ func (quo Quorum) score() (scores []Score) { scoreMap := make(map[string]int) for _, vote := range quo.votes { + if vote.Expired() { + continue + } for _, id := range vote.IDs { score, _ := scoreMap[id] scoreMap[id] = score + 1 |
