using cache for faster existance check in Firehose

This commit is contained in:
pippellia-btc
2025-09-15 17:54:01 +02:00
parent d176d8c81d
commit c489203932
3 changed files with 47 additions and 20 deletions

View File

@@ -83,7 +83,8 @@ func main() {
producers.Add(4)
go func() {
defer producers.Done()
pipe.Firehose(ctx, config.Firehose, db, pipe.Send(recorderQueue))
gate := pipe.NewExistenceGate(db)
pipe.Firehose(ctx, config.Firehose, gate, pipe.Send(recorderQueue))
}()
go func() {