diff options
Diffstat (limited to 'crates/tor-proto/src/util')
| -rw-r--r-- | crates/tor-proto/src/util/stream_poll_set.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/tor-proto/src/util/stream_poll_set.rs b/crates/tor-proto/src/util/stream_poll_set.rs index c701f63fc..2333169ad 100644 --- a/crates/tor-proto/src/util/stream_poll_set.rs +++ b/crates/tor-proto/src/util/stream_poll_set.rs @@ -120,7 +120,7 @@ where /// /// If the `key` is already in use, the parameters are returned without altering `self`. // To *replace* an existing key, we'd need to cancel any pending future and - // ensure that the cancelation is processed before inserting the new key, to + // ensure that the cancellation is processed before inserting the new key, to // ensure we don't assign a value from the previous key to the new key's // stream. pub fn try_insert( @@ -345,7 +345,7 @@ where let Some(peekable) = self.ready_streams.get_mut(&(priority.clone(), key.clone())) else { return Some(Poll::Pending); }; - // We don't have a waker registered here, so we can juse use the noop waker. + // We don't have a waker registered here, so we can just use the noop waker. // TODO: Create a mut future for `PeekableStream`. Some(Pin::new(peekable).poll_peek_mut(&mut Context::from_waker(noop_waker_ref()))) } |
