Skip to content

Commit

Permalink
Merge pull request #276 from strideynet/kev-jetstream-limit-wanted-co…
Browse files Browse the repository at this point in the history
…llections

Limit wanted collections on jetstream
  • Loading branch information
KevSlashNull authored Nov 20, 2024
2 parents 14c01ac + 1db4dee commit 0c6bac0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ingester/ingester.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ func (fi *FirehoseIngester) Start(ctx context.Context) (err error) {

jsCfg := jsclient.DefaultClientConfig()
jsCfg.WebsocketURL = fi.jetstreamURL
jsCfg.WantedCollections = []string{
"app.bsky.actor.profile",
"app.bsky.feed.like",
"app.bsky.feed.post",
"app.bsky.graph.follow",
}

var activeCursor atomic.Int64
sched := jsparallel.NewScheduler(
Expand Down

0 comments on commit 0c6bac0

Please sign in to comment.