Fix typos
This commit is contained in:
parent
99aefe4bb8
commit
ad3c18a456
|
@ -260,7 +260,7 @@ impl<R: Runtime> TorClient<R> {
|
|||
let stream_timeout = Duration::new(10, 0);
|
||||
|
||||
let stream_future = circ.begin_stream(&addr, port, Some(flags.stream_parameters()));
|
||||
// This timout is needless but harmless for optimistic streams.
|
||||
// This timeout is needless but harmless for optimistic streams.
|
||||
let stream = self
|
||||
.runtime
|
||||
.timeout(stream_timeout, stream_future)
|
||||
|
|
|
@ -229,7 +229,7 @@ pub(crate) enum TargetCircUsage {
|
|||
/// want to refactor it a lot.
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub(crate) enum SupportedCircUsage {
|
||||
/// Useable for BEGINDIR-based non-anonymous directory connections
|
||||
/// Usable for BEGINDIR-based non-anonymous directory connections
|
||||
Dir,
|
||||
/// Usable to exit to a set of ports.
|
||||
Exit {
|
||||
|
|
|
@ -36,7 +36,7 @@ fn load_all<R: Runtime>(
|
|||
Ok(loaded)
|
||||
}
|
||||
|
||||
/// Testing helper: if this is Some, then we retun it in place of any
|
||||
/// Testing helper: if this is Some, then we return it in place of any
|
||||
/// response to fetch_single.
|
||||
///
|
||||
/// Note that only one test uses this: otherwise there would be a race
|
||||
|
@ -355,7 +355,7 @@ mod test {
|
|||
|
||||
/// A fake implementation of DirState that just wants a fixed set
|
||||
/// of microdescriptors. It doesn't care if it gets them: it just
|
||||
/// wnats to be told that the IDs exist.
|
||||
/// wants to be told that the IDs exist.
|
||||
#[derive(Debug, Clone)]
|
||||
struct DemoState {
|
||||
second_time_around: bool,
|
||||
|
|
|
@ -248,7 +248,7 @@ impl<DM: WriteNetDir> GetConsensusState<DM> {
|
|||
};
|
||||
|
||||
// Check out what authorities we believe in, and see if enough
|
||||
// of them are purported to have singed this consensus.
|
||||
// of them are purported to have signed this consensus.
|
||||
let n_authorities = self.authority_ids.len() as u16;
|
||||
let unvalidated = unvalidated.set_n_authorities(n_authorities);
|
||||
|
||||
|
|
|
@ -438,7 +438,7 @@ impl<R: Runtime> GuardMgr<R> {
|
|||
Ok((guard, monitor, usable))
|
||||
}
|
||||
|
||||
/// Ensure that the message queue is flushed before proceding to
|
||||
/// Ensure that the message queue is flushed before proceeding to
|
||||
/// the next step. Used for testing.
|
||||
#[cfg(test)]
|
||||
async fn flush_msg_queue(&self) {
|
||||
|
|
|
@ -515,7 +515,7 @@ impl NetDir {
|
|||
}
|
||||
|
||||
/// Return a relay matching a given Ed25519 identity and RSA identity,
|
||||
/// if we have a useable relay with _both_ keys.
|
||||
/// if we have a usable relay with _both_ keys.
|
||||
///
|
||||
/// (Does not return unusable relays.)
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue