mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-16 08:58:19 +08:00
优化初始化方式
This commit is contained in:
@@ -189,12 +189,11 @@ func (slf *TestService2) OnInit() error {
|
||||
}
|
||||
|
||||
func main(){
|
||||
node.Init()
|
||||
tcpService := &sysservice.TcpService{}
|
||||
gateService := &GateService.GateService{}
|
||||
|
||||
tcpService.SetEventReciver(gateService)
|
||||
node.Setup(tcpService,gateService)
|
||||
node.Init()
|
||||
|
||||
node.Start()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user