Browse Source

Merge pull request #118 from namejlt/main

Update tcc.go
pull/146/head
yedf2 4 years ago
committed by GitHub
parent
commit
e1dae2ed3e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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