From 626135458cdb60a865126268acb349dc9653f9dd Mon Sep 17 00:00:00 2001 From: yedongfu Date: Sun, 4 Jul 2021 09:53:01 +0800 Subject: [PATCH] update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index db69482..0a870f3 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ const DtmServer = "http://localhost:8080/api/dtmsvr" const startBusi = "http://localhost:8081/api/busi_saga" req := &gin.H{"amount": 30} // 微服务的负荷 // 生成dtm的saga对象 -saga := dtm.SagaNew(DtmServer). +saga := dtmcli.NewSaga(DtmServer). // 添加两个子事务 Add(startBusi+"/TransOut", startBusi+"/TransOutCompensate", req). Add(startBusi+"/TransIn", startBusi+"/TransInCompensate", req)