forked from quic-go/quic-go
convert Connection interface to Conn struct (#5195)
This commit is contained in:
@@ -84,7 +84,7 @@ type client struct {
|
||||
quicConf *quic.Config
|
||||
|
||||
once sync.Once
|
||||
conn quic.EarlyConnection
|
||||
conn *quic.Conn
|
||||
dialErr error
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user