github.com/TeaOSLab/EdgeNode@v1.3.8/internal/compressions/errors.go (about) 1 // Copyright 2024 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn . 2 3 package compressions 4 5 import "errors" 6 7 var ErrIsBusy = errors.New("the system is busy for compression") 8 9 func CanIgnore(err error) bool { 10 if err == nil { 11 return true 12 } 13 return errors.Is(err, ErrIsBusy) 14 }