mirror of
https://github.com/simon987/imhashdb.git
synced 2025-04-19 18:16:41 +00:00
error checker
This commit is contained in:
parent
5c4d4961e3
commit
25a19ab557
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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user