| 24 | } |
| 25 | |
| 26 | u8 *peer_read(const tal_t *ctx, struct per_peer_state *pps) |
| 27 | { |
| 28 | u8 *msg = wire_sync_read(ctx, pps->peer_fd); |
| 29 | if (!msg) |
| 30 | peer_failed_connection_lost(); |
| 31 | |
| 32 | status_peer_io(LOG_IO_IN, NULL, msg); |
| 33 | |
| 34 | return msg; |
| 35 | } |
no test coverage detected