mirror of
https://github.com/rairyx/raven.git
synced 2024-11-11 19:10:50 +00:00
Merge branch 'dandelion'
This commit is contained in:
commit
0b7301aa32
@ -1,4 +1,4 @@
|
||||
SRC = pubsub-interop.go
|
||||
SRC = raven.go
|
||||
BIN = $(SRC:.go=)
|
||||
DHT_SERVER = libp2p-bootstrap.goelzer.io
|
||||
|
||||
|
@ -62,6 +62,7 @@ waterfall([
|
||||
fsub.on(topicName, (data) => {
|
||||
const messageStr = data.data
|
||||
console.log("received:" + messageStr)
|
||||
// console.log("<peer " + peerIdTruncdStr + ">: " + messageStr)
|
||||
})
|
||||
fsub.subscribe(topicName)
|
||||
|
||||
|
@ -60,7 +60,8 @@ fn main() {
|
||||
fn on_floodsub<TTopology>(&mut self, message: <libp2p::floodsub::Floodsub<TSubstream> as libp2p::core::swarm::NetworkBehaviour<TTopology>>::OutEvent)
|
||||
where TSubstream: libp2p::tokio_io::AsyncRead + libp2p::tokio_io::AsyncWrite
|
||||
{
|
||||
println!("{:?}: {}", &message.source,String::from_utf8_lossy(&message.data));
|
||||
//println!("{:?}: {}", &message.source,String::from_utf8_lossy(&message.data));
|
||||
println!("Received: {}", String::from_utf8_lossy(&message.data));
|
||||
}
|
||||
}
|
||||
|
||||
|
BIN
util/private_key.bin.peer.w6
Executable file
BIN
util/private_key.bin.peer.w6
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user