Revert "[relay] Update GO version and QUIC version (#4736)" (#5055)

This reverts commit 8722b79799.
This commit is contained in:
Maycon Santos
2026-01-07 21:02:20 +03:00
committed by GitHub
parent 8722b79799
commit 24df442198
78 changed files with 341 additions and 312 deletions

View File

@@ -12,14 +12,14 @@ import (
)
type Conn struct {
session *quic.Conn
session quic.Connection
closed bool
closedMu sync.Mutex
ctx context.Context
ctxCancel context.CancelFunc
}
func NewConn(session *quic.Conn) *Conn {
func NewConn(session quic.Connection) *Conn {
ctx, cancel := context.WithCancel(context.Background())
return &Conn{
session: session,

View File

@@ -88,7 +88,7 @@ func (c *Conn) Close() error {
c.closedMu.Lock()
c.closed = true
c.closedMu.Unlock()
return c.CloseNow()
return c.Conn.CloseNow()
}
func (c *Conn) isClosed() bool {