| 16 | } |
| 17 | |
| 18 | u8 *peer_read(const tal_t *ctx, struct per_peer_state *pps) |
| 19 | { |
| 20 | u8 *msg = wire_sync_read(ctx, pps->peer_fd); |
| 21 | if (!msg) |
| 22 | peer_failed_connection_lost(); |
| 23 | |
| 24 | status_peer_io(LOG_IO_IN, NULL, msg); |
| 25 | |
| 26 | return msg; |
| 27 | } |
no test coverage detected