Skip to content

Commit 6987a29

Browse files
committed
change function visibility
1 parent 081d99b commit 6987a29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/peer_channels.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ impl Iroh {
193193
}
194194

195195
/// Leave the realtime channel for a given topic.
196-
pub(crate) async fn leave_realtime(&self, topic: TopicId) -> Result<()> {
196+
pub async fn leave_realtime(&self, topic: TopicId) -> Result<()> {
197197
if let Some(channel) = self.iroh_channels.write().await.remove(&topic) {
198198
// Dropping the last GossipTopic results in quitting the topic.
199199
// It is split into GossipReceiver and GossipSender.
@@ -322,7 +322,7 @@ impl Context {
322322
}
323323

324324
/// Cache a peers [NodeId] for one topic.
325-
pub(crate) async fn iroh_add_peer_for_topic(
325+
pub async fn iroh_add_peer_for_topic(
326326
ctx: &Context,
327327
msg_id: MsgId,
328328
topic: TopicId,
@@ -380,7 +380,7 @@ pub async fn add_gossip_peer_from_header(
380380
}
381381

382382
/// Insert topicId into the database so that we can use it to retrieve the topic.
383-
pub(crate) async fn insert_topic_stub(ctx: &Context, msg_id: MsgId, topic: TopicId) -> Result<()> {
383+
pub async fn insert_topic_stub(ctx: &Context, msg_id: MsgId, topic: TopicId) -> Result<()> {
384384
ctx.sql
385385
.execute(
386386
"INSERT OR REPLACE INTO iroh_gossip_peers (msg_id, public_key, topic, relay_server) VALUES (?, ?, ?, ?)",

0 commit comments

Comments
 (0)