Browse Source
translate dtmcli/tcc.go
翻译TccGlobalTransaction方法的注释
pull/138/head
zxxshaycormac
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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, "")} |
|
|
|
|