mirror of
https://github.com/LBRYFoundation/reflector.go.git
synced 2025-08-23 17:27:25 +00:00
disable disk cleanup routine
This commit is contained in:
parent
df4f42db82
commit
5c91051b78
1 changed files with 0 additions and 8 deletions
|
@ -124,14 +124,6 @@ func (d *DiskBlobStore) Put(hash string, blob stream.Blob) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
select {
|
|
||||||
case <-d.diskCleanupBusy:
|
|
||||||
if time.Since(d.lastChecked) > 5*time.Minute {
|
|
||||||
go d.ensureDiskSpace()
|
|
||||||
}
|
|
||||||
default:
|
|
||||||
break
|
|
||||||
}
|
|
||||||
|
|
||||||
return ioutil.WriteFile(d.path(hash), blob, 0644)
|
return ioutil.WriteFile(d.path(hash), blob, 0644)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue