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 message;
|
||||
pub mod session;
|
||||
pub mod tracking;
|
||||
|
||||
use std::collections::hash_map::Entry;
|
||||
use std::collections::{BTreeMap, HashMap, HashSet};
|
||||
|
|
@ -23,6 +22,7 @@ use nonempty::NonEmpty;
|
|||
use radicle::node::address;
|
||||
use radicle::node::address::{AddressBook, KnownAddress};
|
||||
use radicle::node::config::PeerConfig;
|
||||
pub use radicle::node::tracking::config as tracking;
|
||||
use radicle::node::ConnectOptions;
|
||||
use radicle::storage::RepositoryError;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
pub mod config;
|
||||
pub mod store;
|
||||
|
||||
use std::fmt;
|
||||
|
|
|
|||
|
|
@ -5,11 +5,9 @@ use std::ops;
|
|||
use log::error;
|
||||
use thiserror::Error;
|
||||
|
||||
use radicle::crypto::PublicKey;
|
||||
use radicle::storage::{Namespaces, ReadRepository as _, ReadStorage, RepositoryError};
|
||||
|
||||
use crate::prelude::Id;
|
||||
use crate::service::NodeId;
|
||||
use crate::crypto::PublicKey;
|
||||
use crate::prelude::{Id, NodeId};
|
||||
use crate::storage::{Namespaces, ReadRepository as _, ReadStorage, RepositoryError};
|
||||
|
||||
pub use crate::node::tracking::store;
|
||||
pub use crate::node::tracking::store::Config as Store;
|
||||
|
|
@ -38,6 +36,8 @@ pub enum NamespacesError {
|
|||
#[source]
|
||||
err: RepositoryError,
|
||||
},
|
||||
#[error(transparent)]
|
||||
Git(#[from] crate::git::raw::Error),
|
||||
#[error("Could not find any trusted nodes for {rid}")]
|
||||
NoTrusted { rid: Id },
|
||||
}
|
||||
Loading…
Reference in New Issue