From c326d9b61bfcf56423ca35d013dc717afd2ccbff Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 28 Jan 2024 04:17:22 -0500 Subject: [PATCH] fix: we cannot wrap the build into a module as it causes provide issues --- api/api.go | 2 +- protocols/protocols.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {