Use event store in relay

This commit is contained in:
Jon Staab
2025-09-24 11:46:46 -07:00
parent 91f23cddc9
commit bce89a2e83
8 changed files with 42 additions and 27 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
package sqlite
import (
"errors"
"errors"
"fiatjaf.com/nostr"
)
+1 -1
View File
@@ -10,4 +10,4 @@ func (s *SqliteBackend) DeleteEvent(id nostr.ID) error {
_, err := s.db.Exec("DELETE FROM events WHERE id = ?", id.Hex())
return err
}
}
+1 -1
View File
@@ -5,4 +5,4 @@ package sqlite
const (
// Database configuration
defaultTimeout = 30 // seconds
)
)