Fix typos

This commit is contained in:
Dimitris Apostolou 2021-11-12 13:35:28 +02:00
parent 99aefe4bb8
commit ad3c18a456
No known key found for this signature in database
GPG Key ID: 4B5D20E938204A8A
6 changed files with 7 additions and 7 deletions

View File

@ -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)

View File

@ -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 {

View File

@ -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,

View File

@ -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);

View File

@ -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) {

View File

@ -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.)
///