fix golint
This commit is contained in:
parent
17c8a3813e
commit
28ccf2242b
@ -9,6 +9,7 @@ import (
|
|||||||
"github.com/yedf/dtm/examples"
|
"github.com/yedf/dtm/examples"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// M alias
|
||||||
type M = map[string]interface{}
|
type M = map[string]interface{}
|
||||||
|
|
||||||
func wait() {
|
func wait() {
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
package dtmsvr
|
package dtmsvr
|
||||||
|
|
||||||
type dtmsvrConfig struct {
|
type dtmsvrConfig struct {
|
||||||
TransCronInterval int64 `yaml:"TransCronInterval"` // 单位秒 当事务等待这个时间之后,还没有变化,则进行一轮处理,包括prepared中的任务和commited的任务
|
TransCronInterval int64 `yaml:"TransCronInterval"` // 单位秒 当事务等待这个时间之后,还没有变化,则进行一轮处理,包括prepared中的任务和committed的任务
|
||||||
Mysql map[string]string `yaml:"Mysql"`
|
Mysql map[string]string `yaml:"Mysql"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -21,9 +21,9 @@ func dbGet() *common.DB {
|
|||||||
return common.DbGet(config.Mysql)
|
return common.DbGet(config.Mysql)
|
||||||
}
|
}
|
||||||
func writeTransLog(gid string, action string, status string, branch string, detail string) {
|
func writeTransLog(gid string, action string, status string, branch string, detail string) {
|
||||||
if detail == "" {
|
// if detail == "" {
|
||||||
detail = "{}"
|
// detail = "{}"
|
||||||
}
|
// }
|
||||||
// dbGet().Must().Table("trans_log").Create(M{
|
// dbGet().Must().Table("trans_log").Create(M{
|
||||||
// "gid": gid,
|
// "gid": gid,
|
||||||
// "action": action,
|
// "action": action,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user