]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Fix Config.UploadRateLimiter comment
authorMatt Joiner <anacrolix@gmail.com>
Mon, 10 Oct 2016 04:03:02 +0000 (15:03 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 10 Oct 2016 04:03:02 +0000 (15:03 +1100)
config.go

index 2f87c18011a2597707a5ad93e91ef2a09377c06f..5e82ff67a5bf15770423567051e4e13e2ee8e30e 100644 (file)
--- a/config.go
+++ b/config.go
@@ -31,9 +31,9 @@ type Config struct {
        // not altruistic, we'll upload slightly more than we download from each
        // peer.
        Seed bool `long:"seed"`
-       // If non-zero, is the maximum bytes per second of data pieces we'll
-       // upload to peers.
-       UploadRateLimiter *rate.Limiter
+       // Events are data bytes sent in pieces. The burst must be large enough to
+       // fit a whole chunk.
+       UploadRateLimiter   *rate.Limiter
 
        // User-provided Client peer ID. If not present, one is generated automatically.
        PeerID string