update import paths.

This commit is contained in:
fiatjaf
2025-04-15 08:51:25 -03:00
parent 76032dc089
commit f493293be2
106 changed files with 224 additions and 224 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"fmt"
"math"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostr"
)
const (
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"github.com/kr/pretty"
"github.com/mailru/easyjson"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostr"
)
func TestBaseCase(t *testing.T) {
@@ -4,7 +4,7 @@ import (
"testing"
"github.com/mailru/easyjson"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostr"
)
func TestTagFiltering(t *testing.T) {
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"slices"
"github.com/PowerDNS/lmdb-go/lmdb"
"github.com/fiatjaf/eventstore/mmm/betterbinary"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostr/eventstore/mmm/betterbinary"
"fiatjaf.com/nostr"
)
func (il *IndexingLayer) CountEvents(ctx context.Context, filter nostr.Filter) (int64, error) {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"slices"
"github.com/PowerDNS/lmdb-go/lmdb"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostr"
)
func (il *IndexingLayer) DeleteEvent(ctx context.Context, evt *nostr.Event) error {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"slices"
"testing"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostr"
"github.com/rs/zerolog"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strings"
"github.com/PowerDNS/lmdb-go/lmdb"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostr"
)
// this iterator always goes backwards
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"path/filepath"
"github.com/PowerDNS/lmdb-go/lmdb"
"github.com/fiatjaf/eventstore"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostr/eventstore"
"fiatjaf.com/nostr"
)
var _ eventstore.Store = (*IndexingLayer)(nil)
+2 -2
View File
@@ -11,8 +11,8 @@ import (
"unsafe"
"github.com/PowerDNS/lmdb-go/lmdb"
"github.com/fiatjaf/eventstore/mmm/betterbinary"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostr/eventstore/mmm/betterbinary"
"fiatjaf.com/nostr"
"github.com/rs/zerolog"
)
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"testing"
"github.com/PowerDNS/lmdb-go/lmdb"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostr"
"github.com/rs/zerolog"
"github.com/stretchr/testify/require"
)
+3 -3
View File
@@ -10,9 +10,9 @@ import (
"slices"
"github.com/PowerDNS/lmdb-go/lmdb"
"github.com/fiatjaf/eventstore/internal"
"github.com/fiatjaf/eventstore/mmm/betterbinary"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostr/eventstore/internal"
"fiatjaf.com/nostr/eventstore/mmm/betterbinary"
"fiatjaf.com/nostr"
)
// GetByID returns the event -- if found in this mmm -- and all the IndexingLayers it belongs to.
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"fmt"
"github.com/PowerDNS/lmdb-go/lmdb"
"github.com/fiatjaf/eventstore/internal"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostr/eventstore/internal"
"fiatjaf.com/nostr"
)
type query struct {
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"math"
"github.com/PowerDNS/lmdb-go/lmdb"
"github.com/fiatjaf/eventstore/internal"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostr/eventstore/internal"
"fiatjaf.com/nostr"
)
func (il *IndexingLayer) ReplaceEvent(ctx context.Context, evt *nostr.Event) error {
+2 -2
View File
@@ -12,8 +12,8 @@ import (
"unsafe"
"github.com/PowerDNS/lmdb-go/lmdb"
"github.com/fiatjaf/eventstore/mmm/betterbinary"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostr/eventstore/mmm/betterbinary"
"fiatjaf.com/nostr"
)
func (b *MultiMmapManager) StoreGlobal(ctx context.Context, evt *nostr.Event) (stored bool, err error) {