Commit 752987b8 authored by suyanlong's avatar suyanlong

append port AsyncSend function

parent 4f1fe325
Pipeline #8346 failed with stages
...@@ -71,11 +71,22 @@ func (a *appChain) Send(msg *pb.Message) (*pb.Message, error) { ...@@ -71,11 +71,22 @@ func (a *appChain) Send(msg *pb.Message) (*pb.Message, error) {
} }
func (a *appChain) AsyncSend(msg *pb.Message) error { func (a *appChain) AsyncSend(msg *pb.Message) error {
// TODO 调用该执行。 if msg.Type == pb.Message_IBTP_RECEIPT_SEND {
// a.ExecuteIBTP() ibpx := &pb.IBTPX{}
// a.Rollback() err := ibpx.Unmarshal(msg.Payload.Data)
if err != nil {
panic("implement me") return err
}
ibtp := ibpx.GetIbtp()
ibtp, err = a.ExecuteIBTP(ibtp)
if err != nil {
return err
}
if ibtp == nil {
return errors.New("ibtp wrong")
}
}
return errors.New("ibtp type wrong")
} }
// ListenIBTPX 监听IBTPX数据。 // ListenIBTPX 监听IBTPX数据。
......
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