mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 15:44:21 +01:00
various: minor cleanups from Christian's review.
More significant things have been folded. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -24,11 +24,11 @@ void peer_write(struct per_peer_state *pps, const void *msg TAKES)
|
||||
|
||||
u8 *peer_read(const tal_t *ctx, struct per_peer_state *pps)
|
||||
{
|
||||
u8 *dec = wire_sync_read(ctx, pps->peer_fd);
|
||||
if (!dec)
|
||||
u8 *msg = wire_sync_read(ctx, pps->peer_fd);
|
||||
if (!msg)
|
||||
peer_failed_connection_lost();
|
||||
|
||||
status_peer_io(LOG_IO_IN, NULL, dec);
|
||||
status_peer_io(LOG_IO_IN, NULL, msg);
|
||||
|
||||
return dec;
|
||||
return msg;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user