Skip to content

Commit

Permalink
exporter/metric/dogstatsd: fix incorrect code format comments for Ins…
Browse files Browse the repository at this point in the history
…tallNewPipeline (#484)

Co-authored-by: Rahul Patel <[email protected]>
  • Loading branch information
wingyplus and rghetia authored Feb 19, 2020
1 parent f9a5484 commit bd74f31
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions exporter/metric/dogstatsd/dogstatsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,13 @@ func NewRawExporter(config Config) (*Exporter, error) {

// InstallNewPipeline instantiates a NewExportPipeline and registers it globally.
// Typically called as:
// pipeline, err := dogstatsd.InstallNewPipeline(dogstatsd.Config{...})
// if err != nil {
// ...
// }
// defer pipeline.Stop()
// ... Done
//
// pipeline, err := dogstatsd.InstallNewPipeline(dogstatsd.Config{...})
// if err != nil {
// ...
// }
// defer pipeline.Stop()
// ... Done
func InstallNewPipeline(config Config) (*push.Controller, error) {
controller, err := NewExportPipeline(config)
if err != nil {
Expand Down

0 comments on commit bd74f31

Please sign in to comment.