Remove todo because fixed
This commit is contained in:
@ -87,7 +87,7 @@ func (app *application) CreateElection(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
var res []byte
|
||||
if request.AreVotersKnown {
|
||||
voterIdentities := make([]string, 0, request.MaxVoters) // TODO: this is way too slow
|
||||
voterIdentities := make([]string, 0, request.MaxVoters)
|
||||
for i := 0; i < request.MaxVoters; i++ {
|
||||
randomIdentity := randomVoterIdentity()
|
||||
voterIdentities = append(voterIdentities, randomIdentity)
|
||||
|
Reference in New Issue
Block a user