Skip to content
Permalink
Browse files
Rem: reduntant codes
  • Loading branch information
AlexStocks committed Apr 23, 2020
1 parent 862579a commit dd9b9206851377c5d931d771fe08e6a8d234cc13
Showing 1 changed file with 0 additions and 5 deletions.
@@ -68,10 +68,6 @@ func newServer(t EndPointType, opts ...ServerOption) *server {

s.init(opts...)

//if len(s.addr) == 0 {
// panic(fmt.Sprintf("@addr:%s", s.addr))
//}

return s
}

@@ -373,7 +369,6 @@ func (s *server) runWSEventLoop(newSession NewSessionCallback) {
err = server.Serve(s.streamListener)
if err != nil {
log.Errorf("http.server.Serve(addr{%s}) = err{%+v}", s.addr, perrors.WithStack(err))
// panic(err)
}
}()
}

0 comments on commit dd9b920

Please sign in to comment.