From 7ab27a947e7b6083ddb6121b18bba7f484bf4808 Mon Sep 17 00:00:00 2001 From: dylan Date: Mon, 13 Jan 2025 20:07:18 +0100 Subject: [PATCH] Remove todo because fixed --- cmd/web/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/web/handlers.go b/cmd/web/handlers.go index 5e4e574..8c250a6 100644 --- a/cmd/web/handlers.go +++ b/cmd/web/handlers.go @@ -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)