remove unused code

This commit is contained in:
Yasuhiro Matsumoto 2023-06-05 23:46:25 +09:00
parent 3176fbde62
commit 070bf34438
No known key found for this signature in database
GPG Key ID: 622DE34DC490584B

View File

@ -243,11 +243,6 @@ func (ess *ElasticsearchStorage) CountEvents(ctx context.Context, filter *nostr.
return 0, err
}
limit := 1000
if filter.Limit > 0 && filter.Limit < limit {
limit = filter.Limit
}
es := ess.es
res, err := es.Count(
es.Count.WithContext(ctx),