connectd: at disconnected, tell lightningd how long we were connected.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2025-11-11 11:33:22 +10:30
parent 88b9b0bc28
commit 565f7deec0
15 changed files with 79 additions and 25 deletions

View File

@@ -182,6 +182,7 @@ static struct io_plan *handshake_success(struct io_conn *conn,
struct crypto_state *cs,
struct oneshot *timer,
enum is_websocket is_websocket,
struct timemono starttime,
char **args)
{
int peer_fd = io_conn_fd(conn);