remove the Token field from the StatelessResetError (#4740)

There's nothing the application could possibly do with this value.
This commit is contained in:
Marten Seemann
2024-12-02 13:57:46 +08:00
committed by GitHub
parent a302d7ba4d
commit 363533dc7a
7 changed files with 9 additions and 20 deletions

View File

@@ -114,14 +114,12 @@ func (e *VersionNegotiationError) Is(target error) bool {
}
// A StatelessResetError occurs when we receive a stateless reset.
type StatelessResetError struct {
Token protocol.StatelessResetToken
}
type StatelessResetError struct{}
var _ net.Error = &StatelessResetError{}
func (e *StatelessResetError) Error() string {
return fmt.Sprintf("received a stateless reset with token %x", e.Token)
return "received a stateless reset"
}
func (e *StatelessResetError) Is(target error) bool {