refactor: wrap in a module
This commit is contained in:
parent
80484079d6
commit
4a66be5b87
|
@ -28,7 +28,7 @@ func BuildProtocols(config *viper.Viper) fx.Option {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return fx.Options(options...)
|
return fx.Module("protocol", fx.Options(options...))
|
||||||
}
|
}
|
||||||
|
|
||||||
func SetupLifecycles(lifecycle fx.Lifecycle, protocols []registry.Protocol) {
|
func SetupLifecycles(lifecycle fx.Lifecycle, protocols []registry.Protocol) {
|
||||||
|
|
Loading…
Reference in New Issue