convert Connection interface to Conn struct (#5195)

This commit is contained in:
Marten Seemann
2025-06-09 17:51:46 +08:00
committed by GitHub
parent eb08018a5c
commit 5f3d617dec
43 changed files with 666 additions and 1551 deletions

View File

@@ -84,7 +84,7 @@ type client struct {
quicConf *quic.Config
once sync.Once
conn quic.EarlyConnection
conn *quic.Conn
dialErr error
}

View File

@@ -46,7 +46,7 @@ func (s *Server) ServeListener(ln *quic.EarlyListener) error {
}
}
func (s *Server) handleConn(conn quic.Connection) {
func (s *Server) handleConn(conn *quic.Conn) {
for {
str, err := conn.AcceptStream(context.Background())
if err != nil {