private routing

This commit is contained in:
John Smith
2022-11-02 15:36:01 -04:00
parent ec58574a5e
commit 92b22d5af5
18 changed files with 426 additions and 245 deletions

View File

@@ -3,6 +3,7 @@
use super::*;
use routing_table::*;
use rpc_processor::*;
fn get_bucket_entry_state(text: &str) -> Option<BucketEntryState> {
if text == "dead" {
@@ -397,7 +398,7 @@ impl VeilidAPI {
// Dump routing table entry
let out = match rpc
.rpc_call_status(nr)
.rpc_call_status(Destination::direct(nr))
.await
.map_err(VeilidAPIError::internal)?
{

View File

@@ -366,11 +366,6 @@ impl BlockId {
/////////////////////////////////////////////////////////////////////////////////////////////////////
#[derive(Clone, Debug, PartialEq, PartialOrd, Ord, Eq, Hash, Default, Serialize, Deserialize)]
pub struct SenderInfo {
pub socket_address: Option<SocketAddress>,
}
// Keep member order appropriate for sorting < preference
#[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Serialize, Deserialize, Hash)]
pub enum DialInfoClass {
@@ -420,7 +415,7 @@ pub enum Stability {
Reliable,
}
/// The choice of safety route including in compiled routes
/// The choice of safety route to include in compiled routes
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)]
pub enum SafetySelection {
/// Don't use a safety route, only specify the sequencing preference