Skip to content

Commit

Permalink
feat: replace deprecated fx.Extract function by fx.Populate
Browse files Browse the repository at this point in the history
This literally does nothing in our case, the only different between them is that Populate supports embeds while Extract doesn't and the struct we are passing doesn't have any embed.

However Extract is deprecated and this anoys staticcheck which makes CI fail.
  • Loading branch information
Jorropo committed Dec 7, 2022
1 parent b08e0ea commit cfd0034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func NewNode(ctx context.Context, cfg *BuildCfg) (*IpfsNode, error) {
return nil, fmt.Errorf("building fx opts: %w", err)
}
}
opts = append(opts, fx.Extract(n))
opts = append(opts, fx.Populate(n))

app := fx.New(opts...)

Expand Down

0 comments on commit cfd0034

Please sign in to comment.