Skip to content
Snippets Groups Projects
Commit 24c7dea3 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Resolve DOCDOC comments in tor-dirmgr.

parent dd20ac45
No related branches found
No related tags found
1 merge request!500Teach DirMgr to use slightly untimely directories
......@@ -942,10 +942,8 @@ fn upgrade_weak_ref<T>(weak: &Weak<T>) -> Result<Arc<T>> {
Weak::upgrade(weak).ok_or(Error::ManagerDropped)
}
/// Given a time `now`, return the age of the oldest consensus that we should
/// request at that time.
///
/// DOCDOC allow_skew.
/// Given a time `now`, and an amount of tolerated clock skew `tolerance`,
/// return the age of the oldest consensus that we should request at that time.
pub(crate) fn default_consensus_cutoff(
now: SystemTime,
tolerance: &DirSkewTolerance,
......
......@@ -126,7 +126,11 @@ impl InputString {
}
}
}
/// DOCDOC
/// Try to create an [`InputString`] from an open [`File`].
///
/// We'll try to memory-map the file if we can. If that fails, or if we
/// were built without the `mmap` feature, we'll fall back to reading the
/// file into memory.
pub(crate) fn load(file: File) -> Result<Self> {
#[cfg(feature = "mmap")]
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment