Codebase list golang-gopkg-eapache-queue.v1 / f4e18e9
Replace <= with == to make it clearer the size is always a power of two Evan Huus 8 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
8181 q.buf[q.head] = nil
8282 q.head = (q.head + 1) % len(q.buf)
8383 q.count--
84 if len(q.buf) > minQueueLen && q.count*4 <= len(q.buf) {
84 if len(q.buf) > minQueueLen && q.count*4 == len(q.buf) {
8585 q.resize()
8686 }
8787 }