git-svn-id: svn://47.119.165.148/zhub@118 e63fbceb-bcc3-4977-ac22-735b83d8d0f4
This commit is contained in:
lxy
2021-03-14 14:51:43 +00:00
parent 716b36e864
commit ee885e198a
3 changed files with 3 additions and 3 deletions

2
go.mod
View File

@@ -1,6 +1,6 @@
module zhub module zhub
go 1.15 go 1.16
require ( require (
github.com/go-sql-driver/mysql v1.5.0 github.com/go-sql-driver/mysql v1.5.0

View File

@@ -55,7 +55,7 @@ func msgAccept(v Message) {
return return
case "publish": case "publish":
if len(rcmd) != 3 { if len(rcmd) != 3 {
c.send("-Error: publish para number!") c.send("-Error: publish para number![" + strings.Join(rcmd, " ") + "]")
} else { } else {
zsub.publish(rcmd[1], rcmd[2]) zsub.publish(rcmd[1], rcmd[2])
} }

View File

@@ -168,7 +168,7 @@ func (c *ZConn) appendTo(arr []*ZConn) []*ZConn {
return append(arr, c) return append(arr, c)
} }
// ================== ZHub server ===================================== // ServerStart ================== ZHub server =====================================
/* /*
1、初始化服务 1、初始化服务
2、启动服务监听 2、启动服务监听