use micre v3 registry interface

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2021-02-22 15:08:50 +00:00
parent f89128a2d9
commit 8a8aa2dc52
13 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ func Execute() error {
)
}
//r := *registry.GetRegistry()
//r := registry.GetRegistry()
//opts := micro.Options{
// Registry: r,
+1 -1
View File
@@ -19,7 +19,7 @@ func VersionCommand(cfg *config.Config) *cli.Command {
Usage: "Lists running services with version",
Category: "Runtime",
Action: func(c *cli.Context) error {
reg := *registry.GetRegistry()
reg := registry.GetRegistry()
serviceList, err := reg.ListServices()
if err != nil {
fmt.Println(fmt.Errorf("could not list services: %v", err))