A distributed transaction framework, supports workflow, saga, tcc, xa, 2-phase message, outbox patterns, supports many languages.
BSD 3-Clause "New" or "Revised" License
10.18k
stars
979
forks
source link
tcc事务,分支代码不执行 #523
Open
zzispp opened 2 months ago
只会执行try,confrim和cancel不执行,`func (uc OrderUsecase) CreateOrder(ctx context.Context, o model.Order) (*model.Order, error) { // 判断是否支持该链 supported, err := uc.grpcClient.Block.IsSupportedChainNetwork(ctx, &blockV1.IsSupportedChainNetworkRequest{ Chain: o.Chain, Network: o.Network, }) if err != nil { return nil, err } if !supported.Supported { return nil, errors.InternalServer("CHAIN_NOT_SUPPORTED", "不支持的链网络") }
}`