diff --git a/example/remove/main.go b/example/remove/main.go index 86f3469..202659d 100644 --- a/example/remove/main.go +++ b/example/remove/main.go @@ -44,7 +44,8 @@ for i := 0; i < 100; i++ { sleep(blockSize) bar2.Incr(1) - if bar2.Current() > 42 && p.RemoveBar(bar2) { + stat := bar2.GetStatistics() + if stat.Current > 42 && p.RemoveBar(bar2) { break } blockSize = rand.Intn(maxBlockSize) + 1