From e881e64406bc8f2d0d5d3099a48d3cf4774e7bd8 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 19 May 2023 00:38:36 +0300 Subject: can reject non-participants --- internal/quorum.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'internal/quorum.go') 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) +} -- cgit v1.2.3