mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-10 17:44:22 +01:00
gossipd: use take() in getroute_req.
Trivial optimization. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -1559,8 +1559,8 @@ static struct io_plan *getroute_req(struct io_conn *conn, struct daemon *daemon,
|
||||
msatoshi, riskfactor, final_cltv,
|
||||
fuzz, &seed);
|
||||
|
||||
out = towire_gossip_getroute_reply(msg, hops);
|
||||
daemon_conn_send(daemon->master, out);
|
||||
out = towire_gossip_getroute_reply(NULL, hops);
|
||||
daemon_conn_send(daemon->master, take(out));
|
||||
return daemon_conn_read_next(conn, daemon->master);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user