diff options
author | Tony Garnock-Jones <tonyg@lshift.net> | 2009-08-17 16:05:23 +0100 |
---|---|---|
committer | Tony Garnock-Jones <tonyg@lshift.net> | 2009-08-17 16:05:23 +0100 |
commit | 6f89af777b6704fe7f9521a30449f8369c7492b9 (patch) | |
tree | d4bc04592651f7ffe7309598eaf819e578b22285 | |
parent | 19f881c97ccacad36a83dbc142e3becbe6d5a7de (diff) | |
parent | c9e6b24f4b90f67b8a72b5f942b2cb33df44b12d (diff) | |
download | rabbitmq-c-github-ask-6f89af777b6704fe7f9521a30449f8369c7492b9.tar.gz |
merge default into amqp_0_9_1
-rw-r--r-- | examples/amqp_sendstring.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/amqp_sendstring.c b/examples/amqp_sendstring.c index a26cd3a..305811b 100644 --- a/examples/amqp_sendstring.c +++ b/examples/amqp_sendstring.c @@ -42,8 +42,9 @@ int main(int argc, char const * const *argv) { { amqp_basic_properties_t props; - props._flags = AMQP_BASIC_CONTENT_TYPE_FLAG; + props._flags = AMQP_BASIC_CONTENT_TYPE_FLAG | AMQP_BASIC_DELIVERY_MODE_FLAG; props.content_type = amqp_cstring_bytes("text/plain"); + props.delivery_mode = 2; // persistent delivery mode die_on_error(amqp_basic_publish(conn, 1, amqp_cstring_bytes(exchange), |