From 361c8654c7c7a9ba29678e4036aac3e7d388519d Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sun, 5 Nov 2017 15:26:23 +1100 Subject: [PATCH] Add some TODOs --- connection.go | 1 + global.go | 2 +- torrent.go | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) 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() } -- 2.44.0