Skip to content

Commit

Permalink
fix cortex example code (#722)
Browse files Browse the repository at this point in the history
Co-authored-by: Tyler Yahn <[email protected]>
  • Loading branch information
mtanda and MrAlias authored Mar 29, 2021
1 parent a51c8df commit 5ec7f3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion exporters/metric/cortex/example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ func main() {
}

ctx := context.Background()
defer handleErr(pusher.Stop(ctx))
defer func() {
handleErr(pusher.Stop(ctx))
}()
fmt.Println("Success: Installed Exporter Pipeline")

// Create a counter and a value recorder
Expand Down

0 comments on commit 5ec7f3c

Please sign in to comment.