Remove debug logs

This commit is contained in:
Daniele Tonon
2023-07-14 11:08:02 +02:00
parent 0c80007141
commit b688f0ff41
2 changed files with 1 additions and 6 deletions

View File

@@ -157,11 +157,9 @@ func getLastNotes(ctx context.Context, code string, options ...int) []*nostr.Eve
})
lastNotes := make([]*nostr.Event, 0, 20)
for event := range events {
fmt.Println("last note", event)
lastNotes = nostr.InsertEventIntoDescendingList(lastNotes, event)
}
fmt.Println("returning", len(lastNotes))
return lastNotes
}

View File

@@ -2,7 +2,6 @@ package main
import (
"context"
"fmt"
"net/http"
"strings"
"time"
@@ -21,8 +20,6 @@ func renderRelayPage(w http.ResponseWriter, r *http.Request) {
typ = "relay_sitemap"
}
fmt.Println("hostname", hostname)
ctx, cancel := context.WithTimeout(r.Context(), time.Second*5)
defer cancel()