From 693662ef5bcaddcfcf9118e78995d2cb5292664c Mon Sep 17 00:00:00 2001 From: Marc Falzon Date: Mon, 30 Dec 2013 16:17:47 +0100 Subject: 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. --- tools/publish.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') 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; -- cgit v1.2.1