Skip to content

Commit

Permalink
chore: fix some comments (#1869)
Browse files Browse the repository at this point in the history
Signed-off-by: bytetigers <[email protected]>
  • Loading branch information
bytetigers authored Aug 19, 2024
1 parent e866b00 commit c8754f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tonic-types/src/richer_error/std_messages/retry_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use super::super::{pb, FromAny, IntoAny};
/// [error_details.proto]: https://github.com/googleapis/googleapis/blob/master/google/rpc/error_details.proto
#[derive(Clone, Debug)]
pub struct RetryInfo {
/// Informs the amout of time that clients should wait before retrying.
/// Informs the amount of time that clients should wait before retrying.
pub retry_delay: Option<time::Duration>,
}

Expand Down
2 changes: 1 addition & 1 deletion tonic/src/codec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const DEFAULT_YIELD_THRESHOLD: usize = 32 * 1024;
/// together into one larger send(). The yield threshold controls how
/// much you want to bulk up such a batch of ready-to-send messages.
/// The larger your yield threshold the more you will batch - and
/// consequentially allocate contiguous memory, which might be relevant
/// consequently allocate contiguous memory, which might be relevant
/// if you're considering large numbers here.
/// If your server streaming rpc does not reach the yield threshold
/// before it reaches Poll::Pending (meaning, it's waiting for more
Expand Down

0 comments on commit c8754f3

Please sign in to comment.