using config specific kinds instead of global variable

This commit is contained in:
pippellia
2025-09-11 16:09:50 +02:00
parent da63c69ca8
commit 43a50be2b2
3 changed files with 27 additions and 26 deletions

View File

@@ -37,6 +37,8 @@ func main() {
panic(err)
}
config.Fetcher.Kinds = []int{nostr.KindFollowList} // no need to sync other event kinds
events := make(chan *nostr.Event, config.EventsCapacity)
pubkeys := make(chan string, config.PubkeysCapacity)
@@ -81,7 +83,6 @@ func main() {
go printStats(ctx, events, pubkeys)
}
pipe.Kinds = []int{nostr.KindFollowList} // no need to sync other event kinds
var wg sync.WaitGroup
wg.Add(3)