Make MetaAddr fields public.

This commit is contained in:
Henry de Valence 2019-09-14 08:56:43 -07:00 committed by Deirdre Connolly
parent 8a3cabc686
commit 1f280b7bb8
1 changed files with 5 additions and 3 deletions

View File

@ -10,7 +10,9 @@ use crate::types::Services;
/// [Bitcoin reference](https://en.bitcoin.it/wiki/Protocol_documentation#Network_address)
pub struct MetaAddr {
/// The peer's address.
addr: SocketAddr,
services: Services,
last_seen: DateTime<Utc>,
pub addr: SocketAddr,
/// The services advertised by the peer.
pub services: Services,
/// When the peer was last seen.
pub last_seen: DateTime<Utc>,
}