Remove redundant logging in acl/follows.go and get-indexes-from-filter.go, handle nil Tags in event.go.

This commit is contained in:
2025-09-13 21:17:53 +01:00
parent a75e0994f9
commit 173a34784f
3 changed files with 3 additions and 2 deletions

View File

@@ -157,7 +157,6 @@ func (f *Follows) adminRelays() (urls []string) {
copy(admins, f.admins)
f.followsMx.RUnlock()
seen := make(map[string]struct{})
log.I.S(admins)
for _, adm := range admins {
fl := &filter.F{
Authors: tag.NewFromAny(adm),

View File

@@ -362,7 +362,6 @@ func GetIndexesFromFilter(f *filter.F) (idxs []Range, err error) {
if f.Authors != nil && f.Authors.Len() > 0 {
for _, author := range f.Authors.T {
var p *types2.PubHash
log.I.S(author)
if p, err = CreatePubHashFromData(author); chk.E(err) {
return
}

View File

@@ -98,6 +98,9 @@ func (ev *E) Free() {
// expansion of the escaped content and tags.
func (ev *E) EstimateSize() (size int) {
size = len(ev.ID)*2 + len(ev.Pubkey)*2 + len(ev.Sig)*2 + len(ev.Content)*2
if ev.Tags == nil {
return
}
for _, v := range *ev.Tags {
for _, w := range (*v).T {
size += len(w) * 2