fix golint

This commit is contained in:
yedongfu 2021-07-16 13:55:07 +08:00
parent 17c8a3813e
commit 28ccf2242b
3 changed files with 5 additions and 4 deletions

View File

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

View File

@ -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"`
}

View File

@ -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,