Skip to content

Commit

Permalink
Add notice for not obvious code snippet in nooneisforgotten
Browse files Browse the repository at this point in the history
  • Loading branch information
violog committed Jul 8, 2024
1 parent 8646249 commit 4819331
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/service/workers/nooneisforgotten/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4819331

Please sign in to comment.