Use worker pool extensively

This commit is contained in:
Ben Sarmiento
2023-11-30 00:40:26 +01:00
parent 6e54fa760b
commit 9e3760f275
5 changed files with 97 additions and 64 deletions

View File

@@ -83,7 +83,7 @@ func handleDeleteFile(w http.ResponseWriter, segments []string, t *torrent.Torre
}
file.Link = "unselect"
t.SetChecksum("")
t.SetNewLatestState(torrent.EmptyState())
w.WriteHeader(http.StatusNoContent)
return nil
}