mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-14 07:30:25 +08:00
内容压缩增加繁忙(busy)检测
This commit is contained in:
14
internal/compressions/errors.go
Normal file
14
internal/compressions/errors.go
Normal file
@@ -0,0 +1,14 @@
|
||||
// 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)
|
||||
}
|
||||
Reference in New Issue
Block a user