This commit is contained in:
crusader
2017-11-15 21:09:38 +09:00
parent f1fac395d5
commit e07d0717a2
12 changed files with 147 additions and 185 deletions

View File

@@ -6,6 +6,7 @@ import (
"net"
"git.loafle.net/commons_go/logging"
"git.loafle.net/overflow/overflow_discovery/discovery"
crs "git.loafle.net/commons_go/rpc/server"
"git.loafle.net/commons_go/server"
@@ -34,7 +35,7 @@ func (sh *ServerHandlers) Init() error {
}
func (sh *ServerHandlers) OnStart() {
// no op
discovery.DiscoveryInit()
}
func (sh *ServerHandlers) OnConnect(conn net.Conn) (net.Conn, error) {
@@ -73,7 +74,7 @@ func (sh *ServerHandlers) Handle(conn net.Conn, stopChan <-chan struct{}, doneCh
}
func (sh *ServerHandlers) OnStop() {
// no op
discovery.DiscoveryDestroy()
}
func (sh *ServerHandlers) Validate() {