fix: we cannot wrap the build into a module as it causes provide issues
This commit is contained in:
parent
5fd601407f
commit
c326d9b61b
|
@ -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) {
|
func SetupLifecycles(lifecycle fx.Lifecycle, protocols []registry.API) {
|
||||||
|
|
|
@ -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) {
|
func SetupLifecycles(lifecycle fx.Lifecycle, protocols []registry.Protocol) {
|
||||||
|
|
Loading…
Reference in New Issue