nip45: hyperlolog small fixes and improvements. support deterministic offset for hardcoded set of queries.

This commit is contained in:
fiatjaf
2024-12-07 00:12:19 -03:00
parent 0d40b40c9c
commit 529ade9376
5 changed files with 127 additions and 6 deletions

View File

@@ -476,7 +476,7 @@ func (pool *SimplePool) CountMany(
filter Filter,
opts []SubscriptionOption,
) int {
hll := hyperloglog.New()
hll := hyperloglog.New(0) // offset is irrelevant here, so we just pass 0
wg := sync.WaitGroup{}
wg.Add(len(urls))