From 3d7a81300b495c2a37034cfe5fb31a05032ee20e Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Sat, 5 Mar 2022 12:35:22 -0800 Subject: [PATCH] bin/mass-rebuilder: use whoami() to identify rabbitmq --- ofborg/src/bin/mass-rebuilder.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ofborg/src/bin/mass-rebuilder.rs b/ofborg/src/bin/mass-rebuilder.rs index ebd5339..5d118c3 100644 --- a/ofborg/src/bin/mass-rebuilder.rs +++ b/ofborg/src/bin/mass-rebuilder.rs @@ -38,10 +38,7 @@ fn main() -> Result<(), Box> { let cloner = checkout::cached_cloner(Path::new(&cfg.checkout.root)); let nix = cfg.nix(); - let events = stats::RabbitMq::from_lapin( - &format!("{}-{}", cfg.runner.identity, cfg.nix.system), - task::block_on(conn.create_channel())?, - ); + let events = stats::RabbitMq::from_lapin(&cfg.whoami(), task::block_on(conn.create_channel())?); let queue_name = String::from("mass-rebuild-check-jobs"); chan.declare_queue(easyamqp::QueueConfig {