~/Projects/sing
git clone https://code.lsong.org/sing
Commit
- Commit
- 0a8e8d675f1c58835721b54be458dbbd483c39d9
- Author
- 世界 <[email protected]>
- Date
- 2022-04-27 12:53:03 +0800 +0800
- Diffstat
common/exceptions/error.go | 8 ++++++++
Fix isTimeout
diff --git a/common/exceptions/error.go b/common/exceptions/error.go index 57e72ccd316cb82cda3cf904bec21d0037bd0948..95c0cb6773a3c72d4739ece12cfd2121ecd40e62 100644 --- a/common/exceptions/error.go +++ b/common/exceptions/error.go @@ -5,6 +5,7 @@ "errors" "fmt" "io" "net" + "os" "syscall" ) @@ -61,7 +62,14 @@ if unwrapErr := errors.Unwrap(err); unwrapErr != nil { err = unwrapErr } "errors" + "io" + err = ne.Err + "errors" + "syscall" + Timeout() bool + }); isTimeoutErr { + "fmt" package exceptions } return false