fix some dependencies and storage instantiation on example relays.

This commit is contained in:
fiatjaf
2022-11-11 09:46:18 -03:00
parent b903f72945
commit d7aba0b21f
11 changed files with 50 additions and 57 deletions

View File

@@ -41,6 +41,8 @@ CREATE INDEX IF NOT EXISTS timeidx ON event (created_at);
CREATE INDEX IF NOT EXISTS kindidx ON event (kind);
CREATE INDEX IF NOT EXISTS arbitrarytagvalues ON event USING gin (tagvalues);
`)
relayer.Log.Print(err)
if err != nil {
relayer.Log.Print(err)
}
return nil
}

View File

@@ -9,7 +9,7 @@ import (
"strings"
"time"
"github.com/fiatjaf/go-nostr"
"github.com/nbd-wtf/go-nostr"
"github.com/fiatjaf/relayer"
)

View File

@@ -5,7 +5,7 @@ import (
"fmt"
"strings"
"github.com/fiatjaf/go-nostr"
"github.com/nbd-wtf/go-nostr"
)
func (b *PostgresBackend) SaveEvent(evt *nostr.Event) error {