Browse Source

Update tcc.go

add tcc global transaction desc
pull/118/head
tynam 4 years ago
parent
commit
192eb0567c
  1. 2
      dtmcli/tcc.go

2
dtmcli/tcc.go

@ -23,7 +23,7 @@ type Tcc struct {
type TccGlobalFunc func(tcc *Tcc) (*resty.Response, error) type TccGlobalFunc func(tcc *Tcc) (*resty.Response, error)
// TccGlobalTransaction begin a tcc global transaction // TccGlobalTransaction begin a tcc global transaction
// dtm dtm服务器地址 // dtm dtm server address
// gid 全局事务id // gid 全局事务id
// tccFunc tcc事务函数,里面会定义全局事务的分支 // tccFunc tcc事务函数,里面会定义全局事务的分支
func TccGlobalTransaction(dtm string, gid string, tccFunc TccGlobalFunc) (rerr error) { func TccGlobalTransaction(dtm string, gid string, tccFunc TccGlobalFunc) (rerr error) {

Loading…
Cancel
Save