connectd: spelling and typo fixes.

From @niftynei.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2022-07-18 21:42:28 +09:30 committed by neil saitug
parent 719d1384d1
commit c415c80d48
2 changed files with 3 additions and 3 deletions

View File

@ -1112,7 +1112,7 @@ static struct io_plan *read_body_from_peer_done(struct io_conn *peer_conn,
return read_hdr_from_peer(peer_conn, peer);
}
/* If we don't find a subdaemon for this, crteat a new one. */
/* If we don't find a subdaemon for this, create a new one. */
subd = find_subd(peer, &channel_id);
if (!subd) {
enum peer_wire t = fromwire_peektype(decrypted);

View File

@ -1305,7 +1305,7 @@ void peer_connected(struct lightningd *ld, const u8 *msg)
/* When a peer disconnects, we give subds time to clean themselves up
* (this lets connectd ensure they've seen the final messages). But
* nowe it's reconnected, we've gotta force them out. */
* now it's reconnected, we've gotta force them out. */
peer_channels_cleanup(ld, &id);
/* If we're already dealing with this peer, hand off to correct
@ -1320,7 +1320,7 @@ void peer_connected(struct lightningd *ld, const u8 *msg)
* already reconnected: we would tell it again when we read the
* "peer_connected" message, and it would get upset (plus, our first
* subd wouldn't die as expected. So we echo this back to connectd
* on peer commands, and it knows to ignore if it wrong. */
* on peer commands, and it knows to ignore if it's wrong. */
peer->connectd_counter = connectd_counter;
/* We mark peer in "connecting" state until hooks have passed. */