Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
co-authored by
Julien Robert
parent
27cd8ed9f9
commit
f5b4c23ec3
@@ -54,7 +54,9 @@ func ExtractAutoCLIOptions(appModules map[string]appmodule.AppModule) map[string
|
||||
mod.RegisterServices(cfg)
|
||||
}
|
||||
|
||||
if mod, ok := mod.(appmodule.HasServices); ok {
|
||||
if mod, ok := mod.(interface {
|
||||
RegisterServices(grpc.ServiceRegistrar) error
|
||||
}); ok {
|
||||
err := mod.RegisterServices(cfg)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
Reference in New Issue
Block a user