fix issues.

This commit is contained in:
fiatjaf
2023-10-31 16:01:30 -03:00
parent e95c3cb033
commit faad1b39cd
5 changed files with 12 additions and 8 deletions

View File

@@ -4,7 +4,7 @@ import (
"context"
"encoding/json"
"github.com/fiatjaf/khatru"
"github.com/fiatjaf/eventstore"
"github.com/nbd-wtf/go-nostr"
)
@@ -25,7 +25,7 @@ func (b *SQLite3Backend) SaveEvent(ctx context.Context, evt *nostr.Event) error
}
if nr == 0 {
return storage.ErrDupEvent
return eventstore.ErrDupEvent
}
return nil