Commit d3dddfdb authored by suyanlong's avatar suyanlong

Fixed bug

parent bd1b64f3
Pipeline #8320 failed with stages
......@@ -16,6 +16,7 @@ import (
"gitlab.33.cn/link33/sidecar/internal/txcrypto"
"gitlab.33.cn/link33/sidecar/model/pb"
"gitlab.33.cn/link33/sidecar/pkg/plugins"
"gitlab.33.cn/link33/sidecar/tool"
)
type AppChain interface {
......@@ -51,9 +52,7 @@ func NewPorts(clients []plugins.Client, cryptor txcrypto.Cryptor, logger logrus.
var ps []port.Port
for _, c := range clients {
p, err := NewPort(c, cryptor, logger)
if err != nil {
panic(err)
}
tool.Asset(err)
ps = append(ps, p)
}
......
......@@ -111,6 +111,7 @@ func CreateClients(appchainConfigs []repo.Appchain, extra []byte) []Client {
err = appchain.Initialize(pluginConfigPath, appchainConfig.DID, extra)
tool.Asset(err)
appchain.Bind(kernel)
tool.Asset(appchain.Start())
clients = append(clients, appchain)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment