-
Hi all, Very new user to rust-libp2p (and libp2p in general) here, so please bear with me if I'm forgetting something obvious. I've basically took the rendezvous examples, for the rendezvous point and the register+discover node.
2 notes:
Any idea what could be causing this ? Thank you 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Ok, I found the related issue #2230 and then found how to setup properly the tokio executor here For reference, solved it with let mut swarm = SwarmBuilder::new(
tokio_development_transport(self.kp.clone()).unwrap(),
MyBehaviour { ... }, ... )
.executor(Box::new(|fut| {
tokio::spawn(fut);
}))
.build(); |
Beta Was this translation helpful? Give feedback.
-
@nikkolasg thanks for referencing the solution. Mind proposing a patch improving the docs, preventing future users to run down the same rabbit hole? |
Beta Was this translation helpful? Give feedback.
Ok, I found the related issue #2230 and then found how to setup properly the tokio executor here
For reference, solved it with