Skip to content

Commit

Permalink
Implement PR review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
belimawr committed Apr 12, 2024
1 parent 2695d91 commit a9c1911
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions libbeat/publisher/pipeline/pipeline_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ func makeDiscardQueue() queue.Queue {
// count is a counter that increments on every published event
// it's also the returned Event ID
count := uint64(0)
var producer *testProducer
producer = &testProducer{
producer := &testProducer{
publish: func(try bool, event interface{}) (queue.EntryID, bool) {
count++
return queue.EntryID(count), true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (n *input) Run(runCtx v2.Context, connector beat.PipelineConnector) (err er
EventListener: NewTxACKHandler(),
})
if err != nil {
return fmt.Errorf("could not connect to publishing pipeline: %s", err)
return fmt.Errorf("could not connect to publishing pipeline: %w", err)
}
defer client.Close()

Expand Down

0 comments on commit a9c1911

Please sign in to comment.