update readme
This commit is contained in:
parent
b5cc77640d
commit
1bf7fa75df
@ -27,7 +27,7 @@ DTM is the first golang open source distributed transaction project. It elegantl
|
||||
|
||||
# Quick start
|
||||
### installation
|
||||
`git clone github.com/yedf/dtm`
|
||||
`git clone https://github.com/yedf/dtm`
|
||||
### dtm depends on mysql
|
||||
|
||||
Configure mysql:
|
||||
|
||||
@ -64,7 +64,7 @@ DTM是首款golang的开源分布式事务管理器,优雅的解决了幂等
|
||||
|
||||
# 快速开始
|
||||
### 安装
|
||||
`git get -u github.com/yedf/dtm`
|
||||
`git clone https://github.com/yedf/dtm`
|
||||
### dtm依赖于mysql
|
||||
|
||||
配置mysql:
|
||||
|
||||
@ -5,7 +5,6 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/yedf/dtm/common"
|
||||
"github.com/yedf/dtm/dtmsvr"
|
||||
"github.com/yedf/dtm/examples"
|
||||
)
|
||||
@ -20,11 +19,6 @@ func wait() {
|
||||
}
|
||||
|
||||
func main() {
|
||||
var a, b interface{}
|
||||
common.MustUnmarshalString("{\"a\": 1}", &a)
|
||||
common.MustUnmarshalString("[1, 2]", &b)
|
||||
logrus.Printf("a is: %v, b is: %v", a, b)
|
||||
os.Exit(0)
|
||||
if len(os.Args) > 1 && os.Args[1] == "dtmsvr" { // 实际运行,只启动dtmsvr,不重新load数据
|
||||
dtmsvr.MainStart()
|
||||
wait()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user