Remove capacity argument on RingBuffer.tryPublishEvent, it wasn't used