Skip to content

Commit

Permalink
resolve [start] server log repeat print
Browse files Browse the repository at this point in the history
  • Loading branch information
aceld committed Aug 29, 2024
1 parent 89fe94d commit 6eaed37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion znet/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ func (s *Server) StartConn(conn ziface.IConnection) {
}

func (s *Server) ListenTcpConn() {
zlog.Ins().InfoF("[START] TCP Server name: %s,listener at IP: %s, Port %d is starting", s.Name, s.IP, s.Port)
// 1. Get a TCP address
addr, err := net.ResolveTCPAddr(s.IPVersion, fmt.Sprintf("%s:%d", s.IP, s.Port))
if err != nil {
Expand Down Expand Up @@ -417,7 +418,6 @@ func (s *Server) ListenKcpConn() {
// Start the network service
// (开启网络服务)
func (s *Server) Start() {
zlog.Ins().InfoF("[START] Server name: %s,listener at IP: %s, Port %d is starting", s.Name, s.IP, s.Port)
s.exitChan = make(chan struct{})

// Add decoder to interceptors head
Expand Down

0 comments on commit 6eaed37

Please sign in to comment.