Browse Source

translate dtmcli/tcc.go

翻译TccGlobalTransaction方法的注释
pull/138/head
zxxshaycormac 4 years ago
committed by GitHub
parent
commit
dd4c4e0a67
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dtmcli/tcc.go

2
dtmcli/tcc.go

@ -24,7 +24,7 @@ type TccGlobalFunc func(tcc *Tcc) (*resty.Response, error)
// TccGlobalTransaction begin a tcc global transaction
// dtm dtm server address
// gid 全局事务id
// gid global transaction ID
// tccFunc tcc事务函数,里面会定义全局事务的分支
func TccGlobalTransaction(dtm string, gid string, tccFunc TccGlobalFunc) (rerr error) {
tcc := &Tcc{TransBase: *dtmimp.NewTransBase(gid, "tcc", dtm, "")}

Loading…
Cancel
Save