Fix flake.

This commit is contained in:
Nuno Cruces
2025-04-08 12:41:46 +01:00
parent 73ac7e06f6
commit 1b0bf3495e
3 changed files with 7 additions and 5 deletions

View File

@@ -75,7 +75,7 @@ func (e *Error) As(err any) bool {
// Temporary returns true for [BUSY] errors.
func (e *Error) Temporary() bool {
return e.Code() == BUSY
return e.Code() == BUSY || e.Code() == INTERRUPT
}
// Timeout returns true for [BUSY_TIMEOUT] errors.