fix consume_with_timeout example