Skip to content

Commit 5ec7f3c

Browse files
mtandaMrAlias
andauthored
fix cortex example code (#722)
Co-authored-by: Tyler Yahn <[email protected]>
1 parent a51c8df commit 5ec7f3c

File tree

1 file changed

+3
-1
lines changed
  • exporters/metric/cortex/example

1 file changed

+3
-1
lines changed

exporters/metric/cortex/example/main.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ func main() {
4545
}
4646

4747
ctx := context.Background()
48-
defer handleErr(pusher.Stop(ctx))
48+
defer func() {
49+
handleErr(pusher.Stop(ctx))
50+
}()
4951
fmt.Println("Success: Installed Exporter Pipeline")
5052

5153
// Create a counter and a value recorder

0 commit comments

Comments
 (0)