Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the typos detected by the latest typo-cli #422

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix the issue where bbr3 cannot exit slow start due to high packet loss rate

### Security
- Limit memory consuption for tracking closed stream ids
- Limit memory consumption for tracking closed stream ids


## [v0.9.0] - 2024-04-10
Expand Down
2 changes: 1 addition & 1 deletion include/tquic.h
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ ssize_t quic_stream_write(struct quic_conn_t *conn,
* Create a new quic stream with the given id and priority.
* This is a low-level API for stream creation. It is recommended to use
* `quic_stream_bidi_new` for bidirectional streams or `quic_stream_uni_new`
* for unidrectional streams.
* for undirectional streams.
*/
int quic_stream_new(struct quic_conn_t *conn,
uint64_t stream_id,
Expand Down
6 changes: 3 additions & 3 deletions src/connection/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2032,7 +2032,7 @@ impl Connection {
Ok(())
}

/// Write PATH_RESPONSE/PATH_CHALLENGE frams if needed.
/// Write PATH_RESPONSE/PATH_CHALLENGE frames if needed.
fn try_write_path_validation_frames(
&mut self,
out: &mut [u8],
Expand Down Expand Up @@ -3885,7 +3885,7 @@ impl Connection {
/// Create a new stream with given stream id and priority.
/// This is a low-level API for stream creation. It is recommended to use
/// `stream_bidi_new` for bidirectional streams or `stream_uni_new` for
/// unidrectional streams.
/// undirectional streams.
pub fn stream_new(&mut self, stream_id: u64, urgency: u8, incremental: bool) -> Result<()> {
self.stream_set_priority(stream_id, urgency, incremental)
}
Expand All @@ -3897,7 +3897,7 @@ impl Connection {
self.streams.stream_bidi_new(urgency, incremental)
}

/// Create a new unidrectional stream with given stream priority.
/// Create a new undirectional stream with given stream priority.
/// Return id of the created stream upon success.
pub fn stream_uni_new(&mut self, urgency: u8, incremental: bool) -> Result<u64> {
self.mark_tickable(true);
Expand Down
2 changes: 1 addition & 1 deletion src/connection/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ impl StreamMap {
}
}

/// Create a new unidrectional stream with given stream priority.
/// Create a new undirectional stream with given stream priority.
/// Return id of the created stream upon success.
pub fn stream_uni_new(&mut self, urgency: u8, incremental: bool) -> Result<u64> {
let stream_id = self.next_stream_id_uni;
Expand Down
2 changes: 1 addition & 1 deletion src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub struct Endpoint {
/// The endpoint is shutdown.
closed: bool,

/// The unique trace id for the enpdoint
/// The unique trace id for the endpoint
trace_id: String,
}

Expand Down
2 changes: 1 addition & 1 deletion src/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,7 @@ pub extern "C" fn quic_stream_write(
/// Create a new quic stream with the given id and priority.
/// This is a low-level API for stream creation. It is recommended to use
/// `quic_stream_bidi_new` for bidirectional streams or `quic_stream_uni_new`
/// for unidrectional streams.
/// for undirectional streams.
#[no_mangle]
pub extern "C" fn quic_stream_new(
conn: &mut Connection,
Expand Down
Loading