Replace QUIC with HTTP3/QUIC #43
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…
Reference in a new issue