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

This commit is contained in:
刘祥超
2024-04-20 17:44:23 +08:00
parent c9dac96366
commit a7ad2cea8f
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()
}