Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Zerpet/amqp091-go-repro-106

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

amqp091-go-repro-106

Repro code for rabbitmq/amqp091-go/issues/106

How to run this code

You need 3 terminals and RabbitMQ running, listening in the default AMQP port 5672.

Prepare the following commands in different terminals:

go run consumer/consumer.go --stop

The above will exit after 3 seconds. Don't hit enter until you have all them ready :-) Or change the code in this line:

<-time.After(time.Second*3)

go run consumer/consumer.go

The above won't exit. It should be "ready" consumer. First one should be active.

go run producer/producer.go

The above will publish 100,000 messages and exit. Producer relies on Consumers to create the test queue.