From ca8f32c51bc826ff1b365f53039b760b26e8db98 Mon Sep 17 00:00:00 2001 From: crusader Date: Tue, 10 Apr 2018 13:02:48 +0900 Subject: [PATCH] ing --- server/server-handler.go | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/server/server-handler.go b/server/server-handler.go index f754709..6db5c8d 100644 --- a/server/server-handler.go +++ b/server/server-handler.go @@ -1,16 +1,14 @@ package server - import ( - csgw "git.loafle.net/commons/server-go/socket/web" "git.loafle.net/commons/server-go" - "net" + csgw "git.loafle.net/commons/server-go/socket/web" ogeg "git.loafle.net/overflow/gateway/external/grpc" ) type ServerHandler interface { csgw.ServerHandler -} +} type ServerHandlers struct { csgw.ServerHandlers @@ -25,17 +23,8 @@ func (sh *ServerHandlers) Init(serverCtx server.ServerCtx) error { return nil } -func (sh *ServerHandlers) Listener(serverCtx server.ServerCtx) (net.Listener, error) { - l, err := net.Listen("tcp", "192.168.1.103:44449") - if nil != err { - return nil, err - } - - return l, nil -} - func (sh *ServerHandlers) Destroy(serverCtx server.ServerCtx) { ogeg.DestroyPackage() sh.ServerHandlers.Destroy(serverCtx) -} \ No newline at end of file +}