mirror of
https://github.com/bitvora/wot-relay.git
synced 2025-06-22 07:25:13 +00:00
remove initial huge wave of notes
This commit is contained in:
parent
f2efc9199b
commit
a07829c492
3
main.go
3
main.go
@ -584,6 +584,7 @@ func archiveTrustedNotes(ctx context.Context, relay *khatru.Relay) {
|
|||||||
go refreshProfiles(ctx)
|
go refreshProfiles(ctx)
|
||||||
|
|
||||||
var filters []nostr.Filter
|
var filters []nostr.Filter
|
||||||
|
since := nostr.Now()
|
||||||
if config.ArchiveReactions {
|
if config.ArchiveReactions {
|
||||||
filters = []nostr.Filter{{
|
filters = []nostr.Filter{{
|
||||||
Kinds: []int{
|
Kinds: []int{
|
||||||
@ -599,6 +600,7 @@ func archiveTrustedNotes(ctx context.Context, relay *khatru.Relay) {
|
|||||||
nostr.KindZap,
|
nostr.KindZap,
|
||||||
nostr.KindTextNote,
|
nostr.KindTextNote,
|
||||||
},
|
},
|
||||||
|
Since: &since,
|
||||||
}}
|
}}
|
||||||
} else {
|
} else {
|
||||||
filters = []nostr.Filter{{
|
filters = []nostr.Filter{{
|
||||||
@ -614,6 +616,7 @@ func archiveTrustedNotes(ctx context.Context, relay *khatru.Relay) {
|
|||||||
nostr.KindZap,
|
nostr.KindZap,
|
||||||
nostr.KindTextNote,
|
nostr.KindTextNote,
|
||||||
},
|
},
|
||||||
|
Since: &since,
|
||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user