This commit is contained in:
wangchuxiao
2023-03-08 13:34:12 +08:00
parent 107f4c950b
commit f8ad35a6f7
24 changed files with 209 additions and 125 deletions
+3
View File
@@ -37,6 +37,8 @@ func Init(rpcPort, wsPort int) {
}
func Run(prometheusPort int) {
var wg sync.WaitGroup
wg.Add(3)
go ws.run()
go rpcSvr.run()
go func() {
@@ -45,4 +47,5 @@ func Run(prometheusPort int) {
panic(err)
}
}()
wg.Wait()
}