print stats only when config allows

This commit is contained in:
pippellia-btc
2025-06-16 16:09:18 +02:00
parent 222d6f6b78
commit 94d52f7a1c
2 changed files with 6 additions and 2 deletions

View File

@@ -78,7 +78,9 @@ func main() {
nostr.KindFollowList, // no need to sync other event kinds
}
go printStats(ctx, events, pubkeys)
if config.PrintStats {
go printStats(ctx, events, pubkeys)
}
var wg sync.WaitGroup
wg.Add(3)