Skip to content

Commit

Permalink
remove file no longer in db as error because its handled
Browse files Browse the repository at this point in the history
  • Loading branch information
MutsiMutsi committed Jan 9, 2021
1 parent d71f8bc commit aed1d0e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions surge/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ func downloadChunks(file *File, randomChunks []int) {
//Check if file is still tracked in surge
if err != nil {
log.Println("Download Job Terminated", "File no longer in DB")
pushError("Download Job Terminated", "File no longer in DB")
return
}

Expand All @@ -151,7 +150,6 @@ func downloadChunks(file *File, randomChunks []int) {
dbFile, err = dbGetFile(file.FileHash)
if err != nil {
log.Println("Download Job Terminated", "File no longer in DB")
pushError("Download Job Terminated", "File no longer in DB")
return
}

Expand Down

0 comments on commit aed1d0e

Please sign in to comment.