mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-05-03 17:22:58 +00:00
reorder a couple of things
This commit is contained in:
parent
8141043560
commit
171cc3e01a
@ -48,12 +48,12 @@ void RabbitMQ::init()
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int chan = 0;
|
static int chan = 0;
|
||||||
amqp_channel_open(_conn, ++chan);
|
_channel = ++chan;
|
||||||
|
amqp_channel_open(_conn, _channel);
|
||||||
r = amqp_get_rpc_reply(_conn);
|
r = amqp_get_rpc_reply(_conn);
|
||||||
if(r.reply_type != AMQP_RESPONSE_NORMAL) {
|
if(r.reply_type != AMQP_RESPONSE_NORMAL) {
|
||||||
throw std::runtime_error("Error opening communication channel");
|
throw std::runtime_error("Error opening communication channel");
|
||||||
}
|
}
|
||||||
_channel = chan;
|
|
||||||
|
|
||||||
_q = amqp_queue_declare(_conn, _channel, amqp_cstring_bytes(_qName), 0, 0, 0, 0, amqp_empty_table);
|
_q = amqp_queue_declare(_conn, _channel, amqp_cstring_bytes(_qName), 0, 0, 0, 0, amqp_empty_table);
|
||||||
r = amqp_get_rpc_reply(_conn);
|
r = amqp_get_rpc_reply(_conn);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user