mirror of
https://github.com/aljazceru/crawler_v2.git
synced 2025-12-17 07:24:21 +01:00
added limit to fetcher DB
This commit is contained in:
@@ -282,7 +282,13 @@ func FetcherDB(
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
events, err := store.Query(ctx, nostr.Filter{Kinds: Kinds, Authors: batch})
|
filter := nostr.Filter{
|
||||||
|
Kinds: Kinds,
|
||||||
|
Authors: batch,
|
||||||
|
Limit: len(Kinds) * len(batch),
|
||||||
|
}
|
||||||
|
|
||||||
|
events, err := store.Query(ctx, filter)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("FetcherDB: %v", err)
|
log.Printf("FetcherDB: %v", err)
|
||||||
}
|
}
|
||||||
@@ -301,7 +307,13 @@ func FetcherDB(
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
events, err := store.Query(ctx, nostr.Filter{Kinds: Kinds, Authors: batch})
|
filter := nostr.Filter{
|
||||||
|
Kinds: Kinds,
|
||||||
|
Authors: batch,
|
||||||
|
Limit: len(Kinds) * len(batch),
|
||||||
|
}
|
||||||
|
|
||||||
|
events, err := store.Query(ctx, filter)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("FetcherDB: %v", err)
|
log.Printf("FetcherDB: %v", err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user