summaryrefslogtreecommitdiff
path: root/internal/quorum.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-05-19 00:38:36 +0300
committerPaul Buetow <paul@buetow.org>2023-05-19 00:38:36 +0300
commite881e64406bc8f2d0d5d3099a48d3cf4774e7bd8 (patch)
tree587c6e5d91ba73b9a6f56ac8c2dfa1711b9d5b79 /internal/quorum.go
parentdde3bed148ea90cd505bf6fb67b08719ebc8933a (diff)
can reject non-participants
Diffstat (limited to 'internal/quorum.go')
-rw-r--r--internal/quorum.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/internal/quorum.go b/internal/quorum.go
index 528f460..1307f20 100644
--- a/internal/quorum.go
+++ b/internal/quorum.go
@@ -1,6 +1,9 @@
package internal
-import "time"
+import (
+ "log"
+ "time"
+)
type quorum struct {
ID string
@@ -9,3 +12,7 @@ type quorum struct {
}
type quorumMap map[string]quorum
+
+func (q quorumMap) vote(v vote) {
+ log.Printf("Adding vote %v", v)
+}