chore: rename pastebin-web in pastebin-worker

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
raito 2024-10-30 20:07:01 +01:00
parent cd59258c8f
commit 431376f887

View file

@ -13,7 +13,7 @@ use tracing::info;
fn main() -> Result<(), Box<dyn Error>> {
ofborg::setup_log();
let arg = env::args().nth(1).expect("usage: pastebin-web <config>");
let arg = env::args().nth(1).expect("usage: pastebin-worker <config>");
let cfg = config::load(arg.as_ref());
let conn = easylapin::from_config(&cfg.rabbitmq)?;
@ -53,7 +53,7 @@ fn main() -> Result<(), Box<dyn Error>> {
),
easyamqp::ConsumeConfig {
queue: queue_name.clone(),
consumer_tag: format!("{}-pastebin-web", cfg.whoami()),
consumer_tag: format!("{}-pastebin-worker", cfg.whoami()),
no_local: false,
no_ack: false,
no_wait: false,
@ -61,8 +61,6 @@ fn main() -> Result<(), Box<dyn Error>> {
},
)?;
// Boot an HTTP server to serve pastebin logs as well.
info!("Fetching jobs from {}", &queue_name);
task::block_on(handle);