mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
linting
This commit is contained in:
parent
c72b6bd4a4
commit
aea631bdda
|
@ -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 {}<->{}.",
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue