更新:1、依赖升级
2、module 名称地址
This commit is contained in:
11
main.go
11
main.go
@@ -5,10 +5,11 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"zhub/cmd"
|
||||
"zhub/internal/config"
|
||||
"zhub/internal/monitor"
|
||||
"zhub/internal/zbus"
|
||||
|
||||
"gitea.1216.top/lxy/zhub/cmd"
|
||||
"gitea.1216.top/lxy/zhub/internal/config"
|
||||
"gitea.1216.top/lxy/zhub/internal/monitor"
|
||||
"gitea.1216.top/lxy/zhub/internal/zbus"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -69,7 +70,7 @@ func main() {
|
||||
return
|
||||
}
|
||||
if *isCliMode {
|
||||
cmd.ClientRun(addr) // 客户端运行
|
||||
//cmd.ClientRun(addr) // 客户端运行
|
||||
} else {
|
||||
go monitor.StartWatch() // 启动监控协程
|
||||
zbus.StartServer(addr, conf) // 启动服务进程
|
||||
|
||||
Reference in New Issue
Block a user