Browse Source

fix golint

pull/6/head
yedongfu 5 years ago
parent
commit
28ccf2242b
  1. 1
      app/main.go
  2. 2
      dtmsvr/config.go
  3. 6
      dtmsvr/utils.go

1
app/main.go

@ -9,6 +9,7 @@ import (
"github.com/yedf/dtm/examples"
)
// M alias
type M = map[string]interface{}
func wait() {

2
dtmsvr/config.go

@ -1,7 +1,7 @@
package dtmsvr
type dtmsvrConfig struct {
TransCronInterval int64 `yaml:"TransCronInterval"` // 单位秒 当事务等待这个时间之后,还没有变化,则进行一轮处理,包括prepared中的任务和commited的任务
TransCronInterval int64 `yaml:"TransCronInterval"` // 单位秒 当事务等待这个时间之后,还没有变化,则进行一轮处理,包括prepared中的任务和committed的任务
Mysql map[string]string `yaml:"Mysql"`
}

6
dtmsvr/utils.go

@ -21,9 +21,9 @@ func dbGet() *common.DB {
return common.DbGet(config.Mysql)
}
func writeTransLog(gid string, action string, status string, branch string, detail string) {
if detail == "" {
detail = "{}"
}
// if detail == "" {
// detail = "{}"
// }
// dbGet().Must().Table("trans_log").Create(M{
// "gid": gid,
// "action": action,

Loading…
Cancel
Save