summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMarc Falzon <marc@falzon.me>2013-12-30 16:17:47 +0100
committerMarc Falzon <marc.falzon@gandi.net>2013-12-30 16:17:47 +0100
commit693662ef5bcaddcfcf9118e78995d2cb5292664c (patch)
tree7a2d006f2765623f51ca64f4aecc2086b937ce64 /tools
parentccbc24d2709f6034e7858e6a72b92f6bfc86675f (diff)
downloadrabbitmq-c-github-ask-693662ef5bcaddcfcf9118e78995d2cb5292664c.tar.gz
Honor delivery mode value from command line
This change fixes a bug where delivery mode value was hardcoded to "persistent" even when --persistent flag wasn't specified on the command line options.
Diffstat (limited to 'tools')
-rw-r--r--tools/publish.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/publish.c b/tools/publish.c
index 4fe43cb..552d8d0 100644
--- a/tools/publish.c
+++ b/tools/publish.c
@@ -120,7 +120,7 @@ int main(int argc, const char **argv)
memset(&props, 0, sizeof props);
props._flags = AMQP_BASIC_DELIVERY_MODE_FLAG;
- props.delivery_mode = 2; /* persistent delivery mode */
+ props.delivery_mode = delivery;
if (content_type) {
props._flags |= AMQP_BASIC_CONTENT_TYPE_FLAG;