mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-03 23:20:25 +08:00
15 lines
316 B
Go
15 lines
316 B
Go
// Copyright 2024 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
|
|
|
package compressions
|
|
|
|
import "errors"
|
|
|
|
var ErrIsBusy = errors.New("the system is busy for compression")
|
|
|
|
func CanIgnore(err error) bool {
|
|
if err == nil {
|
|
return true
|
|
}
|
|
return errors.Is(err, ErrIsBusy)
|
|
}
|