radicle: move service tracking config to radicle::node
The `service::tracking` module has nothing specific to the radicle-node code. This means that it can be moved to radicle under the `node::tracking` module. This makes it more resuable in other contexts, for example, for fetching logic. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett
This commit is contained in:
parent
c06b225877
commit
ef6ae0fa84
|
|
@ -6,7 +6,6 @@ pub mod io;
|
||||||
pub mod limitter;
|
pub mod limitter;
|
||||||
pub mod message;
|
pub mod message;
|
||||||
pub mod session;
|
pub mod session;
|
||||||
pub mod tracking;
|
|
||||||
|
|
||||||
use std::collections::hash_map::Entry;
|
use std::collections::hash_map::Entry;
|
||||||
use std::collections::{BTreeMap, HashMap, HashSet};
|
use std::collections::{BTreeMap, HashMap, HashSet};
|
||||||
|
|
@ -23,6 +22,7 @@ use nonempty::NonEmpty;
|
||||||
use radicle::node::address;
|
use radicle::node::address;
|
||||||
use radicle::node::address::{AddressBook, KnownAddress};
|
use radicle::node::address::{AddressBook, KnownAddress};
|
||||||
use radicle::node::config::PeerConfig;
|
use radicle::node::config::PeerConfig;
|
||||||
|
pub use radicle::node::tracking::config as tracking;
|
||||||
use radicle::node::ConnectOptions;
|
use radicle::node::ConnectOptions;
|
||||||
use radicle::storage::RepositoryError;
|
use radicle::storage::RepositoryError;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
pub mod config;
|
||||||
pub mod store;
|
pub mod store;
|
||||||
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,9 @@ use std::ops;
|
||||||
use log::error;
|
use log::error;
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
|
|
||||||
use radicle::crypto::PublicKey;
|
use crate::crypto::PublicKey;
|
||||||
use radicle::storage::{Namespaces, ReadRepository as _, ReadStorage, RepositoryError};
|
use crate::prelude::{Id, NodeId};
|
||||||
|
use crate::storage::{Namespaces, ReadRepository as _, ReadStorage, RepositoryError};
|
||||||
use crate::prelude::Id;
|
|
||||||
use crate::service::NodeId;
|
|
||||||
|
|
||||||
pub use crate::node::tracking::store;
|
pub use crate::node::tracking::store;
|
||||||
pub use crate::node::tracking::store::Config as Store;
|
pub use crate::node::tracking::store::Config as Store;
|
||||||
|
|
@ -38,6 +36,8 @@ pub enum NamespacesError {
|
||||||
#[source]
|
#[source]
|
||||||
err: RepositoryError,
|
err: RepositoryError,
|
||||||
},
|
},
|
||||||
|
#[error(transparent)]
|
||||||
|
Git(#[from] crate::git::raw::Error),
|
||||||
#[error("Could not find any trusted nodes for {rid}")]
|
#[error("Could not find any trusted nodes for {rid}")]
|
||||||
NoTrusted { rid: Id },
|
NoTrusted { rid: Id },
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue