update amqp to avoid self-destruction from heartbeats
This commit is contained in:
parent
851f73092f
commit
07f3d265f9
|
@ -49,8 +49,8 @@ let kernel = buildPlatform.parsed.kernel.name;
|
|||
authors = [ "Andrii Dmytrenko <andrey@reevoo.com>" ];
|
||||
src = fetchgit {
|
||||
url = "https://github.com/grahamc/rust-amqp.git";
|
||||
rev = "be492890a30884be391b2effc0a6dfb3d02f74f6";
|
||||
sha256 = "1why8dw6g73s40n1h8lyv7qkckc06bgn22ny4m2f3lrlvkn9gv02";
|
||||
rev = "f35e2c17de69038c4593621346b4ec6d64cfeaf4";
|
||||
sha256 = "0b4c6alvd4ivv0s73nr8lqkiz27lcgszlkv8nb9alcmpy71x8hqd";
|
||||
};
|
||||
inherit dependencies buildDependencies features;
|
||||
};
|
||||
|
|
2
ofborg/Cargo.lock
generated
2
ofborg/Cargo.lock
generated
|
@ -30,7 +30,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "amqp"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/grahamc/rust-amqp.git#be492890a30884be391b2effc0a6dfb3d02f74f6"
|
||||
source = "git+https://github.com/grahamc/rust-amqp.git#f35e2c17de69038c4593621346b4ec6d64cfeaf4"
|
||||
dependencies = [
|
||||
"amq-proto 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"env_logger 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
|
|
@ -86,7 +86,7 @@ function outrunner($msg) {
|
|||
}
|
||||
|
||||
|
||||
$consumerTag = 'consumer' . getmypid();
|
||||
$consumerTag = 'poster-' . getmypid();
|
||||
$channel->basic_consume($queueName, $consumerTag, false, false, false, false, 'outrunner');
|
||||
while(count($channel->callbacks)) {
|
||||
$channel->wait();
|
||||
|
|
Loading…
Reference in a new issue