diff --git a/api/api.go b/api/api.go index 0e3d54d..de677fb 100644 --- a/api/api.go +++ b/api/api.go @@ -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) { diff --git a/protocols/protocols.go b/protocols/protocols.go index 4fec1e4..9aad2d8 100644 --- a/protocols/protocols.go +++ b/protocols/protocols.go @@ -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) {