ricbra / rabbitmq-cli-consumer

Consume RabbitMQ messages into any cli program
MIT License
247 stars 49 forks source link

User Configurable Queue Durability Setting #20

Closed hellracer closed 8 years ago

hellracer commented 9 years ago

Hi Ric,

I don't know if this has much use, the durability on queue setting is hard coded to true on consumer.go source I tweak config.go and consumer.go to make this user configurable just like what you did on the exchange section, this small change doesn't warrant a pull request afaic, thanks for your client.

--- consumer.go 2015-10-04 06:53:14.955238229 +0800 +++ consumer-mod.go 2015-10-04 06:52:30.962229359 +0800 @@ -101,7 +101,7 @@ infLogger.Println("Succeeded setting QoS.")

infLogger.Printf("Declaring queue \"%s\"...", cfg.RabbitMq.Queue)

--- config.go 2015-10-04 06:55:54.460239866 +0800 +++ config-mod.go 2015-10-04 06:55:42.065235967 +0800 @@ -13,6 +13,7 @@ Port string Vhost string Queue string

ricbra commented 9 years ago

Hi @hellracer

Thanks. I will add this in the v2 version which is currently in development. Current version will only receive bugfixes.

ricbra commented 8 years ago

This is configurable in the v2 branch, closing this one.