mirror of https://github.com/fafhrd91/actix-web
fix: duplicated words in actix-multipart and actix-http h2 comments (#4070)
Co-authored-by: Mira Sato <275437409+oab24413gmai@users.noreply.github.com>
This commit is contained in:
parent
b8d8b20870
commit
c6610d41ec
|
|
@ -163,7 +163,7 @@ where
|
||||||
Poll::Pending => match this.ping_pong.as_mut() {
|
Poll::Pending => match this.ping_pong.as_mut() {
|
||||||
Some(ping_pong) => loop {
|
Some(ping_pong) => loop {
|
||||||
if ping_pong.in_flight {
|
if ping_pong.in_flight {
|
||||||
// When there is an in-flight ping-pong, poll pong and and keep-alive
|
// When there is an in-flight ping-pong, poll pong and keep-alive
|
||||||
// timer. On successful pong received, update keep-alive timer to
|
// timer. On successful pong received, update keep-alive timer to
|
||||||
// determine the next timing of ping pong.
|
// determine the next timing of ping pong.
|
||||||
match ping_pong.ping_pong.poll_pong(cx)? {
|
match ping_pong.ping_pong.poll_pong(cx)? {
|
||||||
|
|
|
||||||
|
|
@ -862,7 +862,7 @@ mod tests {
|
||||||
let response = send_form(&srv, form, "/").await;
|
let response = send_form(&srv, form, "/").await;
|
||||||
assert_eq!(response.status(), StatusCode::OK);
|
assert_eq!(response.status(), StatusCode::OK);
|
||||||
|
|
||||||
// Exceeds the the 30 byte limit
|
// Exceeds the 30 byte limit
|
||||||
let mut form = multipart::Form::default();
|
let mut form = multipart::Form::default();
|
||||||
form.add_text("field", "this string is more than 30 bytes long");
|
form.add_text("field", "this string is more than 30 bytes long");
|
||||||
let response = send_form(&srv, form, "/").await;
|
let response = send_form(&srv, form, "/").await;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue