From 48193314a17c329fd985e4c2b5f42e1b9e31360f Mon Sep 17 00:00:00 2001 From: violog <51th.apprent1ce.f0rce@gmail.com> Date: Mon, 8 Jul 2024 15:28:38 +0300 Subject: [PATCH] Add notice for not obvious code snippet in nooneisforgotten --- internal/service/workers/nooneisforgotten/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/service/workers/nooneisforgotten/main.go b/internal/service/workers/nooneisforgotten/main.go index 913fb45..64871a4 100644 --- a/internal/service/workers/nooneisforgotten/main.go +++ b/internal/service/workers/nooneisforgotten/main.go @@ -148,6 +148,7 @@ func autoClaimEvents(db *pgdb.DB, types *evtypes.Types, levels config.Levels) er return fmt.Errorf("failed to select fulfilled events: %w", err) } + // nullifiers var is used only for selection, so we don't care about duplicates nullifiers := make([]string, 0, len(events)) for _, event := range events { nullifiers = append(nullifiers, event.Nullifier)