add TODO comment for reminding event-based communication

This commit is contained in:
Claus-Peter Hübner 2023-02-13 22:27:40 +01:00
parent 70276800e6
commit f3a72b2545

View File

@ -12,6 +12,7 @@ export async function startValidateCommunities(timerInterval: number): Promise<v
logger.info(
`Federation: startValidateCommunities loop with an interval of ${timerInterval} ms...`,
)
// TODO: replace the timer-loop by an event-based communication to verify announced foreign communities
// better to use setTimeout twice than setInterval once -> see https://javascript.info/settimeout-setinterval
setTimeout(function run() {
validateCommunities()