diff options
author | Tony Garnock-Jones <tonyg@lshift.net> | 2009-08-17 16:03:09 +0100 |
---|---|---|
committer | Tony Garnock-Jones <tonyg@lshift.net> | 2009-08-17 16:03:09 +0100 |
commit | c9e6b24f4b90f67b8a72b5f942b2cb33df44b12d (patch) | |
tree | 8566415b4af107d8de835228eefdd1ed95ad80a4 | |
parent | 8387f05f9828268eaa30df196057e175100644e6 (diff) | |
parent | 1800a1a962b4c39354098c4495909534780772c8 (diff) | |
download | rabbitmq-c-github-ask-c9e6b24f4b90f67b8a72b5f942b2cb33df44b12d.tar.gz |
merger
-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), |