radicle: Improve doc comments
Signed-off-by: xphoniex <dj.2dixx@gmail.com>
This commit is contained in:
parent
bed69ddca9
commit
fb63b1c15d
|
|
@ -149,7 +149,7 @@ impl Profile {
|
||||||
Ok(router)
|
Ok(router)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Return a handle to the address database of the node.
|
/// Return a handle to the addresses database of the node.
|
||||||
pub fn addresses(&self) -> Result<address::Book, address::Error> {
|
pub fn addresses(&self) -> Result<address::Book, address::Error> {
|
||||||
let path = self.home.node().join(node::ADDRESS_DB_FILE);
|
let path = self.home.node().join(node::ADDRESS_DB_FILE);
|
||||||
let addresses = address::Book::reader(path)?;
|
let addresses = address::Book::reader(path)?;
|
||||||
|
|
@ -193,7 +193,7 @@ pub struct Aliases {
|
||||||
|
|
||||||
impl AliasStore for Aliases {
|
impl AliasStore for Aliases {
|
||||||
/// Retrieve `alias` of given node.
|
/// Retrieve `alias` of given node.
|
||||||
/// First looks in `tracking.db` and then `address.db`.
|
/// First looks in `tracking.db` and then `addresses.db`.
|
||||||
fn alias(&self, nid: &NodeId) -> Option<String> {
|
fn alias(&self, nid: &NodeId) -> Option<String> {
|
||||||
self.tracking
|
self.tracking
|
||||||
.alias(nid)
|
.alias(nid)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue