Fixes: https://tracker.ceph.com/issues/64690
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
/// struct used for holding messages in the message queue
struct message_wrapper_t {
- connection_id_t conn_id;
- std::string topic;
- std::string message;
- reply_callback_t cb;
+ const connection_id_t conn_id;
+ const std::string topic;
+ const std::string message;
+ const reply_callback_t cb;
message_wrapper_t(const connection_id_t& _conn_id,
const std::string& _topic,
// key class for the connection list
struct connection_id_t {
std::string host;
- int port;
+ int port = 0;
std::string vhost;
std::string exchange;
- bool ssl;
+ bool ssl = false;
connection_id_t() = default;
connection_id_t(const amqp_connection_info& info, const std::string& _exchange);
};