mirror of
https://github.com/aljazceru/crawler_v2.git
synced 2025-12-17 23:44:27 +01:00
using cache for faster existance check in Firehose
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user