mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-23 00:34:27 +01:00
Treat TLS timeout as an offline error for #50
This commit is contained in:
parent
a481701cda
commit
233ca7ecd3
@ -945,7 +945,8 @@ func IsOfflineError(err error) bool {
|
||||
strings.Contains(err.Error(), ": status_code=502") ||
|
||||
strings.Contains(err.Error(), ": status_code=503") ||
|
||||
strings.Contains(err.Error(), ": i/o timeout") ||
|
||||
strings.Contains(err.Error(), "connect: operation timed out")
|
||||
strings.Contains(err.Error(), "connect: operation timed out") ||
|
||||
strings.Contains(err.Error(), "net/http: TLS handshake timeout")
|
||||
}
|
||||
|
||||
func ReliableDbCreate(db *gorm.DB, entry interface{}) error {
|
||||
|
Loading…
Reference in New Issue
Block a user