mirror of
https://github.com/aljazceru/njump.git
synced 2026-01-31 03:34:37 +01:00
Remove debug logs
This commit is contained in:
4
nostr.go
4
nostr.go
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user