diff --git a/quinn-proto/src/config/mod.rs b/quinn-proto/src/config/mod.rs index 8974ea900..654e663f3 100644 --- a/quinn-proto/src/config/mod.rs +++ b/quinn-proto/src/config/mod.rs @@ -201,7 +201,7 @@ pub struct ServerConfig { /// Used to generate one-time AEAD keys to protect handshake tokens pub(crate) token_key: Arc, - /// Duration after a stateless retry token was issued for which it's considered valid + /// Duration after a retry token was issued for which it's considered valid pub(crate) retry_token_lifetime: Duration, /// Whether to allow clients to migrate to new addresses @@ -254,7 +254,7 @@ impl ServerConfig { self } - /// Duration after a stateless retry token was issued for which it's considered valid + /// Duration after a retry token was issued for which it's considered valid /// /// Defaults to 15 seconds. pub fn retry_token_lifetime(&mut self, value: Duration) -> &mut Self { diff --git a/quinn-proto/src/endpoint.rs b/quinn-proto/src/endpoint.rs index 9bccd0f4f..a7de52eef 100644 --- a/quinn-proto/src/endpoint.rs +++ b/quinn-proto/src/endpoint.rs @@ -1307,8 +1307,7 @@ pub struct AcceptError { pub response: Option, } -/// Error for attempting to retry an [`Incoming`] which already bears an address validation token -/// from a previous retry +/// Error for attempting to retry an [`Incoming`] which already bears a token from a previous retry #[derive(Debug, Error)] #[error("retry() with validated Incoming")] pub struct RetryError(Incoming); diff --git a/quinn/src/incoming.rs b/quinn/src/incoming.rs index fb57db6c2..43dca653b 100644 --- a/quinn/src/incoming.rs +++ b/quinn/src/incoming.rs @@ -104,8 +104,7 @@ struct State { endpoint: EndpointRef, } -/// Error for attempting to retry an [`Incoming`] which already bears an address validation token -/// from a previous retry +/// Error for attempting to retry an [`Incoming`] which already bears a token from a previous retry #[derive(Debug, Error)] #[error("retry() with validated Incoming")] pub struct RetryError(Incoming);