diff options
author | Marc Falzon <marc@falzon.me> | 2013-12-30 16:17:47 +0100 |
---|---|---|
committer | Marc Falzon <marc.falzon@gandi.net> | 2013-12-30 16:17:47 +0100 |
commit | 693662ef5bcaddcfcf9118e78995d2cb5292664c (patch) | |
tree | 7a2d006f2765623f51ca64f4aecc2086b937ce64 | |
parent | ccbc24d2709f6034e7858e6a72b92f6bfc86675f (diff) | |
download | rabbitmq-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.
-rw-r--r-- | tools/publish.c | 2 |
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; |