mirror of
https://github.com/terorie/od-database-crawler.git
synced 2025-12-10 22:18:55 +00:00
Don't call /task/upload for websites with no results
This commit is contained in:
@@ -90,7 +90,10 @@ func uploadChunks(websiteId uint64, f *os.File) error {
|
||||
if err != io.EOF && err != nil {
|
||||
return err
|
||||
}
|
||||
if n < config.ChunkSize {
|
||||
if n == 0 {
|
||||
// Don't upload, no content
|
||||
return nil
|
||||
} else if n < config.ChunkSize {
|
||||
err = nil
|
||||
// Break at end of iteration
|
||||
eof = true
|
||||
|
||||
Reference in New Issue
Block a user