From: Matt Joiner Date: Wed, 13 Oct 2021 04:18:12 +0000 (+1100) Subject: Fix log message argument X-Git-Tag: v1.34.0^2~35 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=e8e7ef989b624949342c3da0e0450eac540dc186;p=btrtrc.git Fix log message argument --- diff --git a/requesting.go b/requesting.go index ed20ba80..1da22900 100644 --- a/requesting.go +++ b/requesting.go @@ -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(), )