From a24c739a4133a8d186a0d54b65ab177b98f09c9a Mon Sep 17 00:00:00 2001 From: pippellia-btc Date: Mon, 23 Jun 2025 18:02:53 +0200 Subject: [PATCH] exporting ParsePubkeys --- pkg/pipe/engine.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/pipe/engine.go b/pkg/pipe/engine.go index 0523640..bdbde32 100644 --- a/pkg/pipe/engine.go +++ b/pkg/pipe/engine.go @@ -194,7 +194,7 @@ func computeDelta(ctx context.Context, db redb.RedisDB, cache *walks.CachedWalke return graph.Delta{}, fmt.Errorf("failed to compute delta: %w", err) } - pubkeys := parsePubkeys(event) + pubkeys := ParsePubkeys(event) onMissing := redb.Ignore if author.Status == graph.StatusActive { // active nodes are the only ones that can add new pubkeys to the database @@ -239,8 +239,8 @@ const ( maxFollows = 50000 ) -// parse unique pubkeys (excluding author) from the "p" tags in the event. -func parsePubkeys(event *nostr.Event) []string { +// Parse unique pubkeys (excluding author) from the "p" tags in the event. +func ParsePubkeys(event *nostr.Event) []string { pubkeys := make([]string, 0, min(len(event.Tags), maxFollows)) for _, tag := range event.Tags { if len(pubkeys) > maxFollows {