drop support for Go 1.20, build on Go 1.22rc1 on CI (#4195)

* drop support for Go 1.20

* ci: udpate CircleCI to Go 1.21

* qtls: remove unnecessary type aliases

* ci: build using Go 1.22rc1
This commit is contained in:
Marten Seemann
2023-12-28 11:31:58 +07:00
committed by GitHub
parent 31a677cacd
commit d795250479
23 changed files with 70 additions and 1591 deletions

View File

@@ -1,9 +1,8 @@
package qerr
import (
"crypto/tls"
"fmt"
"github.com/quic-go/quic-go/internal/qtls"
)
// TransportErrorCode is a QUIC transport error.
@@ -40,7 +39,7 @@ func (e TransportErrorCode) Message() string {
if !e.IsCryptoError() {
return ""
}
return qtls.AlertError(e - 0x100).Error()
return tls.AlertError(e - 0x100).Error()
}
func (e TransportErrorCode) String() string {