Skip to content

Commit 0190b75

Browse files
committed
quic: Fix lint2
1 parent c1c5b3f commit 0190b75

4 files changed

Lines changed: 11 additions & 12 deletions

File tree

src/quic/http3.cc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,10 +1320,10 @@ class Http3ApplicationImpl final : public Session::Application {
13201320
}
13211321

13221322
static int on_send_stop_sending(nghttp3_conn* conn,
1323-
stream_id id,
1324-
error_code app_error_code,
1325-
void* conn_user_data,
1326-
void* stream_user_data) {
1323+
stream_id id,
1324+
error_code app_error_code,
1325+
void* conn_user_data,
1326+
void* stream_user_data) {
13271327
// this callback asks the app side to send a stop sending
13281328
NGHTTP3_CALLBACK_SCOPE(app);
13291329
if (app.is_control_stream(id)) [[unlikely]] {
@@ -1334,10 +1334,10 @@ class Http3ApplicationImpl final : public Session::Application {
13341334
}
13351335

13361336
static int on_do_reset_stream(nghttp3_conn* conn,
1337-
stream_id id,
1338-
error_code app_error_code,
1339-
void* conn_user_data,
1340-
void* stream_user_data) {
1337+
stream_id id,
1338+
error_code app_error_code,
1339+
void* conn_user_data,
1340+
void* stream_user_data) {
13411341
// this callback ask the app side to do a reset stream
13421342
NGHTTP3_CALLBACK_SCOPE(app);
13431343
if (app.is_control_stream(id)) [[unlikely]] {

src/quic/session.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2797,8 +2797,8 @@ void Session::RemoveStream(stream_id id) {
27972797
// then we can proceed to finishing the close now. Note that the
27982798
// expectation is that the session will be destroyed once FinishClose
27992799
// returns.
2800-
if (impl_->state()->closing && impl_->state()->graceful_close
2801-
&& impl_->streams_.size() == 0) {
2800+
if (impl_->state()->closing && impl_->state()->graceful_close &&
2801+
impl_->streams_.size() == 0) {
28022802
FinishClose();
28032803
CHECK(is_destroyed());
28042804
}

src/quic/streams.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1825,7 +1825,7 @@ void Stream::SendStopSending(error_code code) {
18251825
if (!is_pending()) {
18261826
// If the stream is a local unidirectional there's nothing to do here.
18271827
if (is_local_unidirectional()) return;
1828-
NotifyReadableEnded(code);
1828+
NotifyReadableEnded(code);
18291829
} else {
18301830
pending_close_read_code_ = code;
18311831
}

src/quic/streams.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,6 @@ class Stream final : public AsyncWrap,
352352
// that has already been received is still readable.
353353
void SendStopSending(error_code code);
354354

355-
356355
// Currently, only HTTP/3 streams support headers. These methods are here
357356
// to support that. They are not used when using any other QUIC application.
358357

0 commit comments

Comments
 (0)