From: Matt Joiner Date: Sun, 5 Nov 2017 04:26:23 +0000 (+1100) Subject: Add some TODOs X-Git-Tag: v1.0.0~353 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=361c8654c7c7a9ba29678e4036aac3e7d388519d;p=btrtrc.git Add some TODOs --- diff --git a/connection.go b/connection.go index aa7bbc07..b1ced800 100644 --- a/connection.go +++ b/connection.go @@ -410,6 +410,7 @@ func (cn *connection) writer(keepAliveTimeout time.Duration) { postedKeepalives.Add(1) } if buf.Len() == 0 { + // TODO: Minimize wakeups.... cn.writerCond.Wait() continue } diff --git a/global.go b/global.go index fe1901cb..ed06fccc 100644 --- a/global.go +++ b/global.go @@ -30,7 +30,7 @@ const ( // // Fast Extension ([7]|=0x04): // http://bittorrent.org/beps/bep_0006.html. - // Disabled until AllowedFast is implemented. + // Disabled until AllowedFast is implemented. TODO // // DHT ([7]|=1): // http://www.bittorrent.org/beps/bep_0005.html diff --git a/torrent.go b/torrent.go index 0e4d0021..78b73dd2 100644 --- a/torrent.go +++ b/torrent.go @@ -1476,6 +1476,7 @@ func (t *Torrent) pieceHashed(piece int, correct bool) { } func (t *Torrent) cancelRequestsForPiece(piece int) { + // TODO: Make faster for cn := range t.conns { cn.tickleWriter() }