mirror of
https://github.com/simon987/imhashdb.git
synced 2025-12-14 23:29:10 +00:00
error checker
This commit is contained in:
2
core.go
2
core.go
@@ -195,7 +195,7 @@ func IsPermanentError(err error) bool {
|
|||||||
|
|
||||||
if opErr.Timeout() {
|
if opErr.Timeout() {
|
||||||
// Usually means thalt there is no route to host
|
// Usually means thalt there is no route to host
|
||||||
return !opErr.Temporary()
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
switch t := opErr.Err.(type) {
|
switch t := opErr.Err.(type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user