Browse Source

Merge pull request #138 from zxxshaycormac/main

translate dtmcli/tcc.go
topic
yedf2 5 years ago
committed by GitHub
parent
commit
a231f70f9b
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