fix: don't try to embed node.ServicesParams

This commit is contained in:
Derrick Hammer 2024-01-30 14:13:37 -05:00
parent a51e3430e1
commit df3f7e24bb
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 10 additions and 2 deletions

View File

@ -23,7 +23,10 @@ type ServiceParams struct {
type ServicesParams struct { type ServicesParams struct {
fx.In fx.In
node.ServicesParams P2P service.P2PService
Registry service.RegistryService
HTTP service.HTTPService
Storage service.StorageService
} }
func newP2P(params ServiceParams) service.P2PService { func newP2P(params ServiceParams) service.P2PService {
@ -42,5 +45,10 @@ func newStorage(params ServiceParams) service.StorageService {
} }
func newServices(params ServicesParams) service.Services { func newServices(params ServicesParams) service.Services {
return node.NewServices(params.ServicesParams) return node.NewServices(node.ServicesParams{
P2P: params.P2P,
Registry: params.Registry,
HTTP: params.HTTP,
Storage: params.Storage,
})
} }