Disable pprof
This commit is contained in:
@@ -571,7 +571,7 @@ func (t *TorrentManager) Delete(accessKey string, deleteInRD bool, updateDirecto
|
||||
|
||||
func (t *TorrentManager) repair(torrent *Torrent) {
|
||||
if torrent.AllInProgress() {
|
||||
t.log.Infof("Torrent %s is in progress, cannot repair", torrent.AccessKey)
|
||||
t.log.Infof("Torrent %s is in progress, skipping repair until download is done", torrent.AccessKey)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -743,7 +743,7 @@ func (t *TorrentManager) RepairAll() {
|
||||
|
||||
func (t *TorrentManager) Repair(torrent *Torrent) {
|
||||
_ = t.repairWorker.Submit(func() {
|
||||
t.log.Info("repairing torrent %s", torrent.AccessKey)
|
||||
t.log.Info("Repairing torrent %s", torrent.AccessKey)
|
||||
t.repair(torrent)
|
||||
t.log.Info("Finished repairing torrent %s", torrent.AccessKey)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user