mirror of
https://github.com/aljazceru/khatru.git
synced 2026-01-06 23:14:25 +01:00
remove unused code
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user