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

@@ -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