fix for openziti/edge#336
update deps
deal with init/run separation
@@ -18,10 +18,10 @@ package subcmd
import (
"fmt"
- "github.com/openziti/ziti/common/version"
- "github.com/openziti/ziti/ziti/agent"
"github.com/openziti/edge/controller/server"
"github.com/openziti/fabric/controller"
+ "github.com/openziti/ziti/common/version"
+ "github.com/openziti/ziti/ziti/agent"
"github.com/spf13/cobra"
)
@@ -57,8 +57,9 @@ func run(cmd *cobra.Command, args []string) {
}
ec.SetHostController(c)
+ ec.Initialize()
- go ec.InitAndRun()
+ go ec.RunAndWait()
if err = c.Run(); err != nil {
panic(err)
