From 8174d9e203593f90442394b1df67203334f8ab54 Mon Sep 17 00:00:00 2001 From: Arturo Figueroa Date: Fri, 23 Feb 2024 11:01:24 +0100 Subject: [PATCH] Change BKs list --- src/handlers.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/handlers.rs b/src/handlers.rs index efbae80..80f5801 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -538,10 +538,10 @@ async fn create_and_send_task_request( bridgeheads: Option>, token: Option ) -> Result, anyhow::Error> { - let broker = CONFIG.beam_id.as_ref().splitn(3, '.').nth(2) - .ok_or_else(|| anyhow::Error::msg("Invalid app id"))?; + //let broker = CONFIG.beam_id.as_ref().splitn(3, '.').nth(2) + // .ok_or_else(|| anyhow::Error::msg("Invalid app id"))?; - let bks: Vec<_> = bridgeheads.unwrap_or_else(Vec::new).iter().map(|bridgehead_id| {AppId::new_unchecked(format!("{}.{}", bridgehead_id, broker))}).collect(); + let bks: Vec<_> = bridgeheads.unwrap_or_else(Vec::new).iter().map(|bridgehead_id| {AppId::new_unchecked(format!("{}", bridgehead_id))}).collect(); let request = OpalRequest { request_type: request_type.to_string(),