From b9354de8fd5e424ac2f246fff1a03b27e8094fd8 Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 9 Jan 2020 18:21:10 +0100 Subject: Clean up go.mod and vendor --- vendor/github.com/zfjagann/golang-ring/ring.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vendor/github.com/zfjagann') diff --git a/vendor/github.com/zfjagann/golang-ring/ring.go b/vendor/github.com/zfjagann/golang-ring/ring.go index 345ee8cd..6d2a7e24 100644 --- a/vendor/github.com/zfjagann/golang-ring/ring.go +++ b/vendor/github.com/zfjagann/golang-ring/ring.go @@ -56,7 +56,7 @@ func (r *Ring) ContentSize() int { } else { difference := (r.head - r.tail) if difference < 0 { - difference += r.capacity() + difference = -difference } return difference + 1 } -- cgit v1.2.3