diff --git a/README.md b/README.md index b61ec6d..008b24b 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,10 @@ Chihaya is a high-performance [BitTorrent tracker](http://en.wikipedia.org/wiki/ Features include: -- Light resource consumption -- Fast request processing using connection pools to spare the network from exorbitant connections -- Maximum compatibility with what exists of the BitTorrent spec +- Light resource consumption, and fast, asynchronous request processing +- Full compatibility with what exists of the BitTorrent spec - Correct IPv6 support -- Generic storage interfaces that are easily adapted to work with any database. +- Generic storage interfaces that are easily adapted to work with any database ### Technical Details diff --git a/tracker/tracker.go b/tracker/tracker.go index 5f47fee..0c92456 100644 --- a/tracker/tracker.go +++ b/tracker/tracker.go @@ -65,9 +65,12 @@ type Writer interface { // purgeInactivePeers periodically walks the torrent database and removes // peers that haven't announced recently. // -// The default interval is 2x the announce interval, which gives delayed +// The default threshold is 2x the announce interval, which gives delayed // peers a chance to stay alive, while ensuring the majority of responses // contain active peers. +// +// The default interval is equal to the announce interval, since this is a +// relatively expensive operation. func purgeInactivePeers(p Pool, purgeEmptyTorrents bool, threshold, interval time.Duration) { for _ = range time.NewTicker(interval).C { before := time.Now().Add(-threshold)