mirror of
https://github.com/duanhf2012/origin.git
synced 2026-05-18 06:57:29 +08:00
优化模块功能
This commit is contained in:
@@ -51,10 +51,10 @@ func (slf *HttpServerService) initRouterHandler() http.Handler {
|
||||
return cors.Handler(r)
|
||||
}
|
||||
|
||||
func (slf *HttpServerService) OnRun() error {
|
||||
func (slf *HttpServerService) OnRun() bool {
|
||||
|
||||
slf.httpserver.Start()
|
||||
return nil
|
||||
return false
|
||||
}
|
||||
|
||||
func NewHttpServerService(port uint16) *HttpServerService {
|
||||
|
||||
@@ -21,10 +21,10 @@ func (ws *WSServerService) OnInit() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (ws *WSServerService) OnRun() error {
|
||||
func (ws *WSServerService) OnRun() bool {
|
||||
ws.wsserver.Start()
|
||||
|
||||
return nil
|
||||
return false
|
||||
}
|
||||
|
||||
func NewWSServerService(pattern string, port uint16, messageReciver network.IMessageReceiver, bEnableCompression bool) *WSServerService {
|
||||
|
||||
Reference in New Issue
Block a user