use type constructor

This commit is contained in:
A.Unger
2019-12-17 15:20:56 +01:00
parent 944446a3b7
commit 18cd1d9351

View File

@@ -13,11 +13,11 @@ func Command(app *cli.App) cli.Command {
Description: "starts the go-micro runtime services",
Category: "Micro",
Action: func(c *cli.Context) error {
runtime := Runtime{
Services: RuntimeServices,
R: cmd.DefaultCmd.Options().Runtime,
Logger: log.NewLogger(),
}
runtime := New(
Services(RuntimeServices),
Logger(log.NewLogger()),
MicroRuntime(cmd.DefaultCmd.Options().Runtime),
)
{
runtime.Start()