Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dr7ana committed Apr 28, 2023
1 parent c72b6bd commit aea631b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 1 addition & 2 deletions llarp/lokinet_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -715,8 +715,7 @@ extern "C"
return;
}

auto on_open = [ctx, localAddr, remote, open_cb](
bool success, void* user_data) {
auto on_open = [ctx, localAddr, remote, open_cb](bool success, void* user_data) {
llarp::log::info(
logcat,
"Quic tunnel {}<->{}.",
Expand Down
8 changes: 7 additions & 1 deletion llarp/quic/endpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,13 @@ namespace llarp::quic
ngtcp2_pkt_info pi;

auto written = ngtcp2_conn_write_connection_close(
conn, &conn.path.path, &pi, u8data(conn.conn_buffer), conn.conn_buffer.size(), &err, get_timestamp());
conn,
&conn.path.path,
&pi,
u8data(conn.conn_buffer),
conn.conn_buffer.size(),
&err,
get_timestamp());
if (written <= 0)
{
log::warning(
Expand Down
2 changes: 1 addition & 1 deletion llarp/quic/tunnel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ namespace llarp::quic
log::info(logcat, "EOF on connection to {}:{}", c.peer().ip, c.peer().port);
if (auto stream = c.data<Stream>())
{
stream->set_eof(); // CloseEvent will send graceful shutdown to other end
stream->set_eof(); // CloseEvent will send graceful shutdown to other end
}
c.close();
});
Expand Down

0 comments on commit aea631b

Please sign in to comment.