Skip to content

Commit

Permalink
exporter/metric/stdout: fix incorrect code format comments for Instal…
Browse files Browse the repository at this point in the history
…lNewPipeline (#483)

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

// InstallNewPipeline instantiates a NewExportPipeline and registers it globally.
// Typically called as:
// pipeline, err := stdout.InstallNewPipeline(stdout.Config{...})
// if err != nil {
// ...
// }
// defer pipeline.Stop()
// ... Done
//
// pipeline, err := stdout.InstallNewPipeline(stdout.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 bfe569d

Please sign in to comment.