summaryrefslogtreecommitdiff
path: root/internal/quorum/quorum.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/quorum/quorum.go')
-rw-r--r--internal/quorum/quorum.go3
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