Skip to content

Commit b69e3ec

Browse files
committed
wording & add test condition
squash
1 parent 5073bbd commit b69e3ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/peer_channels.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,6 @@ pub(crate) async fn iroh_add_peer_for_topic(
341341
}
342342

343343
/// Add gossip peer from `Iroh-Node-Addr` header to WebXDC message identified by `instance_id`.
344-
/// This should not start iroh, because receiving a NodeAddr does not mean you want to participate.
345344
pub async fn add_gossip_peer_from_header(
346345
context: &Context,
347346
instance_id: MsgId,
@@ -981,6 +980,7 @@ mod tests {
981980
let msg = alice.pop_sent_msg().await;
982981
let fiona_instance = fiona.recv_msg(&msg).await;
983982
fiona_instance.chat_id.accept(fiona).await.unwrap();
983+
assert!(!fiona.ctx.iroh.read().await.is_some());
984984

985985
let fiona_connect_future = send_webxdc_realtime_advertisement(fiona, fiona_instance.id)
986986
.await

0 commit comments

Comments
 (0)