lightningd: rename activate_peers() to setup_peers().

Activate means a specific thing now (connectd said something), so avoid
confusing it with this function.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-03-23 07:00:59 +10:30
parent 90be2cc104
commit 33abf93ec1
4 changed files with 8 additions and 8 deletions

View File

@@ -1784,7 +1784,7 @@ command_find_channel(struct command *cmd,
}
}
static void activate_peer(struct peer *peer, u32 delay)
static void setup_peer(struct peer *peer, u32 delay)
{
struct channel *channel;
struct channel_inflight *inflight;
@@ -1815,14 +1815,14 @@ static void activate_peer(struct peer *peer, u32 delay)
}
}
void activate_peers(struct lightningd *ld)
void setup_peers(struct lightningd *ld)
{
struct peer *p;
/* Avoid thundering herd: after first five, delay by 1 second. */
int delay = -5;
list_for_each(&ld->peers, p, list) {
activate_peer(p, delay > 0 ? delay : 0);
setup_peer(p, delay > 0 ? delay : 0);
delay++;
}
}