lapin icon indicating copy to clipboard operation
lapin copied to clipboard

[tokio-consumer] one message lag

Open 51yu opened this issue 3 years ago • 2 comments

when use tokio consumer, the message is always one record behind

let properties = ConnectionProperties::default().with_tokio_executor();
let conn = Connection::connect(&config.uri, properties).await?;
let channel = conn.create_channel().await?;
let consumer = channel
            .basic_consume(...);
for bytes in consumer.into_iter() {
}

lapin version: 1.7.1 tokio version: 1.6.1 tokio-amqp: 1.0.0

51yu avatar Jun 12 '21 03:06 51yu

Does this happen without tokio?

Keruspe avatar Jan 04 '22 20:01 Keruspe

Also, does it still happen with tokio-amqp 1.1.0?

Keruspe avatar Jan 30 '22 13:01 Keruspe