From a59b7e1f0233f1db4d6b05f09d9efdb54a19f1da Mon Sep 17 00:00:00 2001 From: lixiaoshuang <644968328@qq.com> Date: Sun, 12 Dec 2021 17:45:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bench/main.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bench/main.go b/bench/main.go index 6a2434a..86fab07 100644 --- a/bench/main.go +++ b/bench/main.go @@ -10,6 +10,12 @@ import ( "os" ) +var hint = `To start the bench server, you need to specify the parameters: + +Available commands: + http start bench server +` + func main() { if len(os.Args) > 1 { dtmimp.Logf("starting dtm....") @@ -24,6 +30,10 @@ func main() { go dtmsvr.CronExpiredTrans(-1) // 启动dtmsvr的定时过期查询 StartSvr() select {} + }else { + fmt.Printf(hint) } + }else { + fmt.Printf(hint) } }