Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup Filebeat publishers #2463

Merged
merged 1 commit into from
Sep 5, 2016
Merged

Conversation

ruflin
Copy link
Contributor

@ruflin ruflin commented Sep 5, 2016

  • Separate async and sync publisher into own files
  • Add Publish interface method which can be used to manually trigger publish (see Allow filebeat to only run once #2456)
  • Add getDataEvents function
  • Rename publish to publisher package

func (p *asyncLogPublisher) Publish() error {
select {
case <-p.done:
return fmt.Errorf("async publisher stopped")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return errors.New ?

Copy link
Contributor Author

@ruflin ruflin Sep 5, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed for all occurences

* Separate async and sync publisher into own files
* Add Publish interface method which can be used to manually trigger publish (see elastic#2456)
* Add getDataEvents function
* Rename publish to publisher package
@urso urso merged commit 8594872 into elastic:master Sep 5, 2016
@ruflin ruflin deleted the cleanup-publisher branch September 5, 2016 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants