mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 07:34:21 +01:00
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:
@@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user