mirror of
https://github.com/golang/go
synced 2024-11-17 10:04:43 -07:00
crypto/tls: fix typo in spelling of permanentError
Change-Id: I819c121ff388460ec348af773ef94b44416a2ea9
GitHub-Last-Rev: 98dd8fb25c
GitHub-Pull-Request: golang/go#41785
Reviewed-on: https://go-review.googlesource.com/c/go/+/259517
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Trust: Emmanuel Odeke <emm.odeke@gmail.com>
This commit is contained in:
parent
8e203884dc
commit
d2a80f3fb5
@ -168,18 +168,18 @@ type halfConn struct {
|
|||||||
trafficSecret []byte // current TLS 1.3 traffic secret
|
trafficSecret []byte // current TLS 1.3 traffic secret
|
||||||
}
|
}
|
||||||
|
|
||||||
type permamentError struct {
|
type permanentError struct {
|
||||||
err net.Error
|
err net.Error
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *permamentError) Error() string { return e.err.Error() }
|
func (e *permanentError) Error() string { return e.err.Error() }
|
||||||
func (e *permamentError) Unwrap() error { return e.err }
|
func (e *permanentError) Unwrap() error { return e.err }
|
||||||
func (e *permamentError) Timeout() bool { return e.err.Timeout() }
|
func (e *permanentError) Timeout() bool { return e.err.Timeout() }
|
||||||
func (e *permamentError) Temporary() bool { return false }
|
func (e *permanentError) Temporary() bool { return false }
|
||||||
|
|
||||||
func (hc *halfConn) setErrorLocked(err error) error {
|
func (hc *halfConn) setErrorLocked(err error) error {
|
||||||
if e, ok := err.(net.Error); ok {
|
if e, ok := err.(net.Error); ok {
|
||||||
hc.err = &permamentError{err: e}
|
hc.err = &permanentError{err: e}
|
||||||
} else {
|
} else {
|
||||||
hc.err = err
|
hc.err = err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user