aa
This commit is contained in:
@@ -48,7 +48,7 @@ type TcpClient struct {
|
|||||||
s *sync.RWMutex
|
s *sync.RWMutex
|
||||||
}
|
}
|
||||||
|
|
||||||
func Init() {
|
func init() {
|
||||||
listenTcp()
|
listenTcp()
|
||||||
go handleTcpMessages()
|
go handleTcpMessages()
|
||||||
}
|
}
|
||||||
|
|||||||
4
main.go
4
main.go
@@ -3,7 +3,6 @@ package main
|
|||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.rosy.net.cn/jx-callback/business/jxstore/event"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
_ "net/http/pprof"
|
_ "net/http/pprof"
|
||||||
"os"
|
"os"
|
||||||
@@ -144,9 +143,6 @@ func main() {
|
|||||||
http.ListenAndServe("0.0.0.0:6060", nil)
|
http.ListenAndServe("0.0.0.0:6060", nil)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
if globals.IsProductEnv() {
|
|
||||||
event.Init()
|
|
||||||
}
|
|
||||||
beego.Run()
|
beego.Run()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user