rename default services

This commit is contained in:
A.Unger
2020-02-17 14:43:56 +01:00
parent e0cfee48f4
commit 4a9fe6ec5f
4 changed files with 52 additions and 54 deletions
+1 -4
View File
@@ -36,15 +36,12 @@ func Server(cfg *config.Config) *cli.Command {
}
runtime := runtime.New(
runtime.Services(append(runtime.RuntimeServices, runtime.Extensions...)),
runtime.Services(append(runtime.MicroServices, runtime.Extensions...)),
runtime.Logger(logger),
runtime.MicroRuntime(cmd.DefaultCmd.Options().Runtime),
)
// fork uses the micro runtime to fork go-micro services
runtime.Start()
// trap blocks until a kill signal is sent
runtime.Trap()
return nil