delete blobs after reflection

remove 15 seconds wait after sync
This commit is contained in:
Niko Storni 2019-07-10 17:27:46 +02:00
parent 5dbad2d2e4
commit 013760d48d
2 changed files with 6 additions and 13 deletions

View file

@ -21,8 +21,7 @@ func ReflectAndClean() error {
if err != nil {
return err
}
return nil
//return cleanupLbrynet()
return cleanupLbrynet()
}
func loadConfig(path string) (cmd.Config, error) {
@ -107,6 +106,10 @@ func cleanupLbrynet() error {
return errors.Err(err)
}
}
err = os.RemoveAll(lbrynetDir + "/blobfiles/")
if err != nil {
return errors.Err(err)
}
return nil
}

View file

@ -311,17 +311,7 @@ func (s *Sync) FullCycle() (e error) {
return err
}
err = s.doSync()
if err != nil {
return err
} else {
// wait for reflection to finish???
wait := 15 * time.Second // should bump this up to a few min, but keeping it low for testing
log.Println("Waiting " + wait.String() + " to finish reflecting everything")
time.Sleep(wait)
}
return nil
return s.doSync()
}
func deleteSyncFolder(videoDirectory string) {