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