Skip to content

Commit 0bc131c

Browse files
committed
change function visibility
1 parent 329bbba commit 0bc131c

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
@@ -194,7 +194,7 @@ impl Iroh {
194194
}
195195

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

325325
/// Cache a peers [NodeId] for one topic.
326-
pub(crate) async fn iroh_add_peer_for_topic(
326+
pub async fn iroh_add_peer_for_topic(
327327
ctx: &Context,
328328
msg_id: MsgId,
329329
topic: TopicId,
@@ -381,7 +381,7 @@ pub async fn add_gossip_peer_from_header(
381381
}
382382

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

0 commit comments

Comments
 (0)