Ensure that all types appearing in public types are exported.
This commit is contained in:
parent
1f0a7e5e73
commit
ad43a61fb4
|
@ -53,12 +53,18 @@ mod peer_set;
|
||||||
mod protocol;
|
mod protocol;
|
||||||
mod timestamp_collector;
|
mod timestamp_collector;
|
||||||
|
|
||||||
pub use config::Config;
|
pub use crate::{
|
||||||
pub use meta_addr::MetaAddr;
|
config::Config,
|
||||||
pub use network::Network;
|
peer_set::{init, BoxedZebraService},
|
||||||
pub use peer_set::{init, BoxedZebraService};
|
protocol::internal::{Request, Response},
|
||||||
pub use protocol::internal::{Request, Response};
|
// XXX replace with `AddressBook`
|
||||||
pub use timestamp_collector::TimestampCollector;
|
timestamp_collector::TimestampCollector,
|
||||||
|
};
|
||||||
|
|
||||||
|
/// Types used in the definition of [`Request`] and [`Response`] messages.
|
||||||
|
pub mod types {
|
||||||
|
pub use crate::{meta_addr::MetaAddr, network::Network, protocol::types::PeerServices};
|
||||||
|
}
|
||||||
|
|
||||||
/// This will be removed when we finish encapsulation
|
/// This will be removed when we finish encapsulation
|
||||||
pub mod should_be_private {
|
pub mod should_be_private {
|
||||||
|
|
|
@ -19,7 +19,7 @@ use crate::{
|
||||||
constants,
|
constants,
|
||||||
protocol::{codec::*, internal::*, message::*, types::*},
|
protocol::{codec::*, internal::*, message::*, types::*},
|
||||||
timestamp_collector::{PeerLastSeen, TimestampCollector},
|
timestamp_collector::{PeerLastSeen, TimestampCollector},
|
||||||
BoxedStdError, Config, Network,
|
BoxedStdError, Config, types::Network,
|
||||||
};
|
};
|
||||||
|
|
||||||
use super::{error::ErrorSlot, server::ServerState, HandshakeError, PeerClient, PeerServer};
|
use super::{error::ErrorSlot, server::ServerState, HandshakeError, PeerClient, PeerServer};
|
||||||
|
|
|
@ -17,7 +17,7 @@ use zebra_chain::{
|
||||||
types::{BlockHeight, Sha256dChecksum},
|
types::{BlockHeight, Sha256dChecksum},
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::{constants, Network};
|
use crate::{constants, types::Network};
|
||||||
|
|
||||||
use super::{inv::InventoryHash, message::Message, types::*};
|
use super::{inv::InventoryHash, message::Message, types::*};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue