Skip to content

Commit

Permalink
feat: Updated pumps/logzio.go
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Jan 29, 2024
1 parent 954d546 commit 7ea3f18
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pumps/logzio.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ func (p *LogzioPump) WriteData(ctx context.Context, data []interface{}) error {
return fmt.Errorf("failed to marshal decoded data: %s", err)
}

p.sender.Send(event)
err = p.sender.Send(event)
if err != nil {
return fmt.Errorf("failed to send event: %s", err)
}
}
p.log.Info("Purged ", len(data), " records...")

Check failure on line 167 in pumps/logzio.go

View workflow job for this annotation

GitHub Actions / Go 1.21 tests

syntax error: non-declaration statement outside function body

Expand Down

0 comments on commit 7ea3f18

Please sign in to comment.