mirror of
https://github.com/fiatjaf/khatru.git
synced 2025-03-18 05:42:19 +01:00
remove unused code
This commit is contained in:
parent
3176fbde62
commit
070bf34438
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user