Skip to content

Commit

Permalink
fix use of IgnorError
Browse files Browse the repository at this point in the history
Signed-off-by: Angelo De Caro <[email protected]>
  • Loading branch information
adecaro committed Dec 18, 2024
1 parent 816132a commit ed6c2fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion platform/fabric/core/generic/delivery/delivery.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ func New(

// Start runs the delivery service in a goroutine
func (d *Delivery) Start(ctx context.Context) {
go utils.IgnoreError(d.Run(ctx))
go utils.IgnoreErrorFunc(func() error {
return d.Run(ctx)
})
}

func (d *Delivery) Stop() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func startPostgresWithLogger(c ContainerConfig, t Logger, printLogs bool) (func(
}
closeFunc := func() {
t.Log("removing postgres container")
utils.IgnoreError(cli.ContainerRemove(ctx, resp.ID, container.RemoveOptions{Force: true}))
_ = cli.ContainerRemove(ctx, resp.ID, container.RemoveOptions{Force: true})
}
if err := cli.ContainerStart(ctx, resp.ID, container.StartOptions{}); err != nil {
closeFunc()
Expand Down

0 comments on commit ed6c2fb

Please sign in to comment.