Browse Source

Merge pull request #184 from huanghao9015/main

Update trans_xa_base.go
pull/193/head
yedf2 4 years ago
committed by GitHub
parent
commit
7d1c659d5a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dtmcli/dtmimp/trans_xa_base.go
  2. 2
      main.go

2
dtmcli/dtmimp/trans_xa_base.go

@ -18,7 +18,7 @@ type XaClientBase struct {
NotifyURL string NotifyURL string
} }
// HandleCallback type of commit/rollback callback handler // HandleCallback Handle the callback of commit/rollback
func (xc *XaClientBase) HandleCallback(gid string, branchID string, action string) error { func (xc *XaClientBase) HandleCallback(gid string, branchID string, action string) error {
db, err := StandaloneDB(xc.Conf) db, err := StandaloneDB(xc.Conf)
if err != nil { if err != nil {

2
main.go

@ -58,7 +58,7 @@ func main() {
return return
} }
config.MustLoadConfig(*confFile) config.MustLoadConfig(*confFile)
conf := config.Config conf := &config.Config
if *isDebug { if *isDebug {
conf.LogLevel = "debug" conf.LogLevel = "debug"
} }

Loading…
Cancel
Save