Commit d3dddfdb authored by suyanlong's avatar suyanlong

Fixed bug

parent bd1b64f3
Pipeline #8320 failed with stages
...@@ -16,6 +16,7 @@ import ( ...@@ -16,6 +16,7 @@ import (
"gitlab.33.cn/link33/sidecar/internal/txcrypto" "gitlab.33.cn/link33/sidecar/internal/txcrypto"
"gitlab.33.cn/link33/sidecar/model/pb" "gitlab.33.cn/link33/sidecar/model/pb"
"gitlab.33.cn/link33/sidecar/pkg/plugins" "gitlab.33.cn/link33/sidecar/pkg/plugins"
"gitlab.33.cn/link33/sidecar/tool"
) )
type AppChain interface { type AppChain interface {
...@@ -51,9 +52,7 @@ func NewPorts(clients []plugins.Client, cryptor txcrypto.Cryptor, logger logrus. ...@@ -51,9 +52,7 @@ func NewPorts(clients []plugins.Client, cryptor txcrypto.Cryptor, logger logrus.
var ps []port.Port var ps []port.Port
for _, c := range clients { for _, c := range clients {
p, err := NewPort(c, cryptor, logger) p, err := NewPort(c, cryptor, logger)
if err != nil { tool.Asset(err)
panic(err)
}
ps = append(ps, p) ps = append(ps, p)
} }
......
...@@ -111,6 +111,7 @@ func CreateClients(appchainConfigs []repo.Appchain, extra []byte) []Client { ...@@ -111,6 +111,7 @@ func CreateClients(appchainConfigs []repo.Appchain, extra []byte) []Client {
err = appchain.Initialize(pluginConfigPath, appchainConfig.DID, extra) err = appchain.Initialize(pluginConfigPath, appchainConfig.DID, extra)
tool.Asset(err) tool.Asset(err)
appchain.Bind(kernel) appchain.Bind(kernel)
tool.Asset(appchain.Start())
clients = append(clients, appchain) 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