From 29a7d204bfb7a5cb4eb96da343d144e9d6bb022a Mon Sep 17 00:00:00 2001 From: Hocuri Date: Fri, 18 Sep 2026 18:07:09 +0200 Subject: [PATCH] Add comment --- src/autorelay.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/autorelay.rs b/src/autorelay.rs index 9d5a2de01..bf411cfea 100644 --- a/src/autorelay.rs +++ b/src/autorelay.rs @@ -98,6 +98,8 @@ pub(crate) async fn init_transports_inner( // Take a lock in order to prevent other relay management code // from running simultaneously let _lock = context.background_task_lock.read().await; + // TODO add a back-channel here, + // and then the surrounding function has to wait until all tasks took the lock loop { let Ok(host) = relays_receiver.try_recv() else {