Fix wording in a couple comments
This commit is contained in:
parent
809735c504
commit
19f03499a2
2 changed files with 7 additions and 5 deletions
|
@ -4,11 +4,10 @@ Chihaya is a high-performance [BitTorrent tracker](http://en.wikipedia.org/wiki/
|
||||||
|
|
||||||
Features include:
|
Features include:
|
||||||
|
|
||||||
- Light resource consumption
|
- Light resource consumption, and fast, asynchronous request processing
|
||||||
- Fast request processing using connection pools to spare the network from exorbitant connections
|
- Full compatibility with what exists of the BitTorrent spec
|
||||||
- Maximum compatibility with what exists of the BitTorrent spec
|
|
||||||
- Correct IPv6 support
|
- 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
|
### Technical Details
|
||||||
|
|
||||||
|
|
|
@ -65,9 +65,12 @@ type Writer interface {
|
||||||
// purgeInactivePeers periodically walks the torrent database and removes
|
// purgeInactivePeers periodically walks the torrent database and removes
|
||||||
// peers that haven't announced recently.
|
// 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
|
// peers a chance to stay alive, while ensuring the majority of responses
|
||||||
// contain active peers.
|
// 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) {
|
func purgeInactivePeers(p Pool, purgeEmptyTorrents bool, threshold, interval time.Duration) {
|
||||||
for _ = range time.NewTicker(interval).C {
|
for _ = range time.NewTicker(interval).C {
|
||||||
before := time.Now().Add(-threshold)
|
before := time.Now().Add(-threshold)
|
||||||
|
|
Loading…
Add table
Reference in a new issue