修改:简化工程包结构

git-svn-id: svn://47.119.165.148/zhub@132 e63fbceb-bcc3-4977-ac22-735b83d8d0f4
This commit is contained in:
lxy
2021-11-04 10:57:50 +00:00
parent a254269684
commit 7ca71eb838
10 changed files with 150 additions and 201 deletions

View File

@@ -12,7 +12,6 @@ import (
"sync/atomic"
"time"
"unicode/utf8"
"zhub/conf"
)
var (
@@ -251,7 +250,7 @@ ServerStart
2、init server
*/
func ServerStart(addr string) {
conf.GetStr("data.dir", "data")
GetStr("data.dir", "data")
go func() {
for {
@@ -523,7 +522,3 @@ func (s *ZSub) noSubscribe(topic string) bool {
}
return true
}
func ZSubx() *ZSub {
return zsub
}