Test partial voting

This commit is contained in:
Ian Gulliver
2023-06-04 14:04:15 -07:00
parent ed7ce91819
commit ddea4c91e4
2 changed files with 39 additions and 0 deletions

View File

@@ -61,8 +61,13 @@ func NewVoter(url string, signingKey string, candidate *Candidate) *Voter {
}
func (v *Voter) Stop() {
if v.update == nil {
return
}
close(v.update)
<-v.done
v.update = nil
}
func (v *Voter) loop() {