Skip to content

Commit

Permalink
fix govet errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirms committed Mar 20, 2024
1 parent 8a3e272 commit 3621cef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion services/horizon/internal/ingest/processor_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,8 @@ func (s *ProcessorRunner) runChangeProcessorOnLedger(

compactor := ingest.NewChangeCompactor()
for {
change, err := changeReader.Read()
var change ingest.Change
change, err = changeReader.Read()
if err == io.EOF {
break
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (p *AccountsProcessor) ProcessChange(ctx context.Context, change ingest.Cha
case change.Pre == nil && change.Post != nil:
// Created
row := p.ledgerEntryToRow(*change.Post)
err := p.batchInsertBuilder.Add(row)
err = p.batchInsertBuilder.Add(row)
if err != nil {
return errors.Wrap(err, "Error adding to AccountsBatchInsertBuilder")
}
Expand Down

0 comments on commit 3621cef

Please sign in to comment.