mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(net): impl active session (#219)
* feat(net): impl active stream * rename fields * work on active * feat(net): add disconnect function * more work on active session * feat(net): add broadcast message variants * feat: impl session future * misc: refactor Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
This commit is contained in:
@ -72,12 +72,12 @@ impl Discovery {
|
||||
}
|
||||
|
||||
/// Manually adds an address to the set.
|
||||
pub(crate) fn add_known_address(&mut self, node_id: PeerId, addr: SocketAddr) {
|
||||
pub(crate) fn add_known_address(&mut self, peer_id: PeerId, addr: SocketAddr) {
|
||||
self.on_discv4_update(TableUpdate::Added(NodeRecord {
|
||||
address: addr.ip(),
|
||||
tcp_port: addr.port(),
|
||||
udp_port: addr.port(),
|
||||
id: node_id,
|
||||
id: peer_id,
|
||||
}))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user