mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 22:34:25 +01:00
allow manual deletes.
This commit is contained in:
1
main.go
1
main.go
@@ -88,6 +88,7 @@ func main() {
|
|||||||
// expose our internal cache as a relay (mostly for debugging purposes)
|
// expose our internal cache as a relay (mostly for debugging purposes)
|
||||||
relay := khatru.NewRelay()
|
relay := khatru.NewRelay()
|
||||||
relay.QueryEvents = append(relay.QueryEvents, db.QueryEvents)
|
relay.QueryEvents = append(relay.QueryEvents, db.QueryEvents)
|
||||||
|
relay.DeleteEvent = append(relay.DeleteEvent, db.DeleteEvent)
|
||||||
relay.RejectEvent = append(relay.RejectEvent,
|
relay.RejectEvent = append(relay.RejectEvent,
|
||||||
func(context.Context, *nostr.Event) (bool, string) {
|
func(context.Context, *nostr.Event) (bool, string) {
|
||||||
return true, "this relay is not writable"
|
return true, "this relay is not writable"
|
||||||
|
|||||||
Reference in New Issue
Block a user