mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
lightningd/connection: remove conn_fd field.
io_conn_fd(conn) will give it to you anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
bdc41f00f3
commit
d616dbbd44
@ -69,7 +69,6 @@ void daemon_conn_init(tal_t *ctx, struct daemon_conn *dc, int fd,
|
||||
dc->ctx = ctx;
|
||||
dc->msg_in = NULL;
|
||||
msg_queue_init(&dc->out, dc->ctx);
|
||||
dc->conn_fd = fd;
|
||||
dc->msg_queue_cleared_cb = NULL;
|
||||
io_new_conn(ctx, fd, daemon_conn_start, dc);
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ struct daemon_conn {
|
||||
/* Queue of outgoing messages */
|
||||
struct msg_queue out;
|
||||
|
||||
int conn_fd;
|
||||
/* Underlying connection */
|
||||
struct io_conn *conn;
|
||||
|
||||
/* Callback for incoming messages */
|
||||
|
Loading…
Reference in New Issue
Block a user