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
  • Loading branch information
wingyplus committed Feb 19, 2020
1 parent f99337f commit 3fc113c
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 3fc113c

Please sign in to comment.