chore: unused function
This commit is contained in:
parent
ceabb95f6d
commit
5fd601407f
10
api/api.go
10
api/api.go
|
@ -16,16 +16,6 @@ func RegisterApis() {
|
|||
})
|
||||
}
|
||||
|
||||
func getModulesBasedOnConfig() []fx.Option {
|
||||
var modules []fx.Option
|
||||
for _, entry := range registry.GetRegistry() {
|
||||
if viper.GetBool("protocols." + entry.Key + ".enabled") {
|
||||
modules = append(modules, entry.Module)
|
||||
}
|
||||
}
|
||||
return modules
|
||||
}
|
||||
|
||||
func BuildApis(config *viper.Viper) fx.Option {
|
||||
var options []fx.Option
|
||||
enabledProtocols := config.GetStringSlice("core.protocols")
|
||||
|
|
Loading…
Reference in New Issue