added the id field to ServerConn

This commit is contained in:
2024-12-03 00:55:19 +09:00
parent eef1941dea
commit b17f3af7ad
4 changed files with 164 additions and 51 deletions

View File

@ -951,7 +951,7 @@ func (c *Client) RemoveClientConn(cts *ClientConn) error {
fmt.Printf("REMOVEDDDDDD CONNECTION FROM %s total servers %d\n", cts.cfg.ServerAddr, len(c.cts_map_by_addr))
c.cts_mtx.Unlock()
c.ReqStop()
cts.ReqStop()
return nil
}