fix: we cannot wrap the build into a module as it causes provide issues

This commit is contained in:
Derrick Hammer 2024-01-28 04:17:22 -05:00
parent 5fd601407f
commit c326d9b61b
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ func BuildApis(config *viper.Viper) fx.Option {
}
}
return fx.Module("api", fx.Options(options...))
return fx.Options(options...)
}
func SetupLifecycles(lifecycle fx.Lifecycle, protocols []registry.API) {

View File

@ -28,7 +28,7 @@ func BuildProtocols(config *viper.Viper) fx.Option {
}
}
return fx.Module("protocol", fx.Options(options...))
return fx.Options(options...)
}
func SetupLifecycles(lifecycle fx.Lifecycle, protocols []registry.Protocol) {