update readme

This commit is contained in:
yedongfu 2021-07-20 20:21:08 +08:00
parent b5cc77640d
commit 1bf7fa75df
3 changed files with 2 additions and 8 deletions

View File

@ -27,7 +27,7 @@ DTM is the first golang open source distributed transaction project. It elegantl
# Quick start # Quick start
### installation ### installation
`git clone github.com/yedf/dtm` `git clone https://github.com/yedf/dtm`
### dtm depends on mysql ### dtm depends on mysql
Configure mysql Configure mysql

View File

@ -64,7 +64,7 @@ DTM是首款golang的开源分布式事务管理器优雅的解决了幂等
# 快速开始 # 快速开始
### 安装 ### 安装
`git get -u github.com/yedf/dtm` `git clone https://github.com/yedf/dtm`
### dtm依赖于mysql ### dtm依赖于mysql
配置mysql 配置mysql

View File

@ -5,7 +5,6 @@ import (
"time" "time"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"github.com/yedf/dtm/common"
"github.com/yedf/dtm/dtmsvr" "github.com/yedf/dtm/dtmsvr"
"github.com/yedf/dtm/examples" "github.com/yedf/dtm/examples"
) )
@ -20,11 +19,6 @@ func wait() {
} }
func main() { 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数据 if len(os.Args) > 1 && os.Args[1] == "dtmsvr" { // 实际运行只启动dtmsvr不重新load数据
dtmsvr.MainStart() dtmsvr.MainStart()
wait() wait()