Skip to content

Commit

Permalink
Fix DoS if refreshing of matview takes too long
Browse files Browse the repository at this point in the history
Refreshing the view after many changes (such as the 8 million new torrents
in 2.0) can take, if the disk is a bottleneck, take longer than 60 min.
  • Loading branch information
urbanguacamole committed Jul 19, 2020
1 parent 4cdd603 commit a671561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crawl-rss/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func main() {
}
}
i++
go refresh(db)
refresh(db)
time.Sleep(time.Minute * 60)
}
}
Expand Down

0 comments on commit a671561

Please sign in to comment.