From bdcfacdb7894d5ae870550477a70c756853c8b94 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Thu, 25 Apr 2024 09:49:00 +0200 Subject: [PATCH] MINOR: peers: Add comment on processing functions of the sync task Just add a comment on __process_running_peer_sync() and __process_stopping_peer_sync() functions. --- src/peers.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/peers.c b/src/peers.c index 129d28fef8..d854780711 100644 --- a/src/peers.c +++ b/src/peers.c @@ -3385,6 +3385,7 @@ static void sync_peer_app_state(struct peers *peers, struct peer *peer) } } +/* Process the sync task for a running process. It is called from process_peer_sync() only */ static void __process_running_peer_sync(struct task *task, struct peers *peers, unsigned int state) { struct peer *ps; @@ -3554,6 +3555,7 @@ static void __process_running_peer_sync(struct task *task, struct peers *peers, } } +/* Process the sync task for a stopping process. It is called from process_peer_sync() only */ static void __process_stopping_peer_sync(struct task *task, struct peers *peers, unsigned int state) { struct peer *ps; -- 2.47.3