mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
net: flag relevant Sock methods with [[nodiscard]]
This commit is contained in:
parent
a1f0b8b62e
commit
e286cd0d7b
4 changed files with 21 additions and 18 deletions
|
|
@ -37,7 +37,7 @@ FUZZ_TARGET_INIT(i2p, initialize_i2p)
|
|||
if (sess.Listen(conn)) {
|
||||
if (sess.Accept(conn)) {
|
||||
try {
|
||||
conn.sock->RecvUntilTerminator('\n', 10ms, interrupt, i2p::sam::MAX_MSG_SIZE);
|
||||
(void)conn.sock->RecvUntilTerminator('\n', 10ms, interrupt, i2p::sam::MAX_MSG_SIZE);
|
||||
} catch (const std::runtime_error&) {
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue