Skip to content

Commit b5f646f

Browse files
everpeaceembik
andcommitted
Update examples/cluster-inventory-api/main.go
Co-authored-by: Marvin Beckers <mail@embik.me>
1 parent 8280ec3 commit b5f646f

File tree

1 file changed

+1
-6
lines changed
  • examples/cluster-inventory-api

1 file changed

+1
-6
lines changed

examples/cluster-inventory-api/main.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,7 @@ func main() {
141141
os.Exit(1)
142142
}
143143

144-
// Starting everything.
145-
g, ctx := errgroup.WithContext(ctx)
146-
g.Go(func() error {
147-
return ignoreCanceled(mcMgr.Start(ctx))
148-
})
149-
if err := g.Wait(); err != nil {
144+
if err := mcMgr.Start(ctx); ignoreCanceled(err) != nil {
150145
entryLog.Error(err, "unable to start")
151146
os.Exit(1)
152147
}

0 commit comments

Comments
 (0)