]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Fix log message argument
authorMatt Joiner <anacrolix@gmail.com>
Wed, 13 Oct 2021 04:18:12 +0000 (15:18 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 19 Oct 2021 03:08:56 +0000 (14:08 +1100)
requesting.go

index ed20ba80dda80b30fd8aa2d1d5b583a0b9b48ef3..1da229007f55c9c2d27dc6aaf9f8d035fc9547f9 100644 (file)
@@ -273,7 +273,7 @@ func (p *Peer) applyRequestState(next requestState) bool {
                }
                if maxRequests(current.Requests.GetCardinality()) >= p.nominalMaxRequests() {
                        log.Printf("not assigning all requests [desired=%v, cancelled=%v, max=%v]",
-                               current.Requests.GetCardinality(),
+                               next.Requests.GetCardinality(),
                                p.cancelledRequests.GetCardinality(),
                                p.nominalMaxRequests(),
                        )