Update zebra-network/src/address_book.rs
Co-Authored-By: Deirdre Connolly <deirdre@zfnd.org>
This commit is contained in:
parent
a8ef02c826
commit
62e423bad8
|
|
@ -143,7 +143,7 @@ impl AddressBook {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns an iterator that drains entries from the address book, removing
|
/// Returns an iterator that drains entries from the address book, removing
|
||||||
/// them in order from most recent to least recent.
|
/// them in order from least recent to most recent.
|
||||||
pub fn drain_oldest<'a>(&'a mut self) -> impl Iterator<Item = MetaAddr> + 'a {
|
pub fn drain_oldest<'a>(&'a mut self) -> impl Iterator<Item = MetaAddr> + 'a {
|
||||||
Drain {
|
Drain {
|
||||||
book: self,
|
book: self,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue