提升Partial Content的范围数据(ranges)写入效率

This commit is contained in:
GoEdgeLab
2024-04-20 17:44:23 +08:00
parent b4c8f9cd02
commit b8e6d585c4
6 changed files with 184 additions and 3 deletions

View File

@@ -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()
}