From 7f6f921aa99cff168cb234322711356f83450825 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sun, 22 May 2016 22:42:37 +1000 Subject: [PATCH] Comment on tracker.AnnounceRequest.Event --- tracker/tracker.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tracker/tracker.go b/tracker/tracker.go index c57d8052..ed8c42d8 100644 --- a/tracker/tracker.go +++ b/tracker/tracker.go @@ -13,11 +13,13 @@ type AnnounceRequest struct { Downloaded int64 Left uint64 Uploaded int64 - Event AnnounceEvent - IPAddress int32 - Key int32 - NumWant int32 // How many peer addresses are desired. -1 for default. - Port uint16 + // Apparently this is optional. None can be used for announces done at + // regular intervals. + Event AnnounceEvent + IPAddress int32 + Key int32 + NumWant int32 // How many peer addresses are desired. -1 for default. + Port uint16 } // 82 bytes type AnnounceResponse struct {