mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-22 14:30:26 +08:00
提升Partial Content的范围数据(ranges)写入效率
This commit is contained in:
@@ -145,6 +145,8 @@ func (this *PartialFileReader) IsCompleted() bool {
|
||||
}
|
||||
|
||||
func (this *PartialFileReader) discard() error {
|
||||
SharedPartialRangesQueue.Delete(this.rangePath)
|
||||
_ = os.Remove(this.rangePath)
|
||||
|
||||
return this.FileReader.discard()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user