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

View File

@@ -7,10 +7,10 @@ import (
"encoding/hex"
"github.com/PowerDNS/lmdb-go/lmdb"
bin "github.com/fiatjaf/eventstore/internal/binary"
"github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/nip45"
"github.com/nbd-wtf/go-nostr/nip45/hyperloglog"
bin "fiatjaf.com/nostr/eventstore/internal/binary"
"fiatjaf.com/nostr"
"fiatjaf.com/nostr/nip45"
"fiatjaf.com/nostr/nip45/hyperloglog"
"golang.org/x/exp/slices"
)

View File

@@ -6,7 +6,7 @@ import (
"fmt"
"github.com/PowerDNS/lmdb-go/lmdb"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostr"
)
func (b *LMDBBackend) DeleteEvent(ctx context.Context, evt *nostr.Event) error {

View File

@@ -11,8 +11,8 @@ import (
"time"
"github.com/PowerDNS/lmdb-go/lmdb"
"github.com/fiatjaf/eventstore"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostr/eventstore"
"fiatjaf.com/nostr"
"github.com/stretchr/testify/require"
"golang.org/x/exp/slices"
)

View File

@@ -10,7 +10,7 @@ import (
"strings"
"github.com/PowerDNS/lmdb-go/lmdb"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostr"
"golang.org/x/exp/slices"
)

View File

@@ -7,7 +7,7 @@ import (
"sync/atomic"
"github.com/PowerDNS/lmdb-go/lmdb"
"github.com/fiatjaf/eventstore"
"fiatjaf.com/nostr/eventstore"
)
var _ eventstore.Store = (*LMDBBackend)(nil)

View File

@@ -6,8 +6,8 @@ import (
"log"
"github.com/PowerDNS/lmdb-go/lmdb"
bin "github.com/fiatjaf/eventstore/internal/binary"
"github.com/nbd-wtf/go-nostr"
bin "fiatjaf.com/nostr/eventstore/internal/binary"
"fiatjaf.com/nostr"
)
const (

View File

@@ -9,10 +9,10 @@ import (
"slices"
"github.com/PowerDNS/lmdb-go/lmdb"
"github.com/fiatjaf/eventstore"
"github.com/fiatjaf/eventstore/internal"
bin "github.com/fiatjaf/eventstore/internal/binary"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostr/eventstore"
"fiatjaf.com/nostr/eventstore/internal"
bin "fiatjaf.com/nostr/eventstore/internal/binary"
"fiatjaf.com/nostr"
)
func (b *LMDBBackend) QueryEvents(ctx context.Context, filter nostr.Filter) (chan *nostr.Event, error) {

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 {

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 (b *LMDBBackend) ReplaceEvent(ctx context.Context, evt *nostr.Event) error {

View File

@@ -7,9 +7,9 @@ import (
"math"
"github.com/PowerDNS/lmdb-go/lmdb"
"github.com/fiatjaf/eventstore"
bin "github.com/fiatjaf/eventstore/internal/binary"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostr/eventstore"
bin "fiatjaf.com/nostr/eventstore/internal/binary"
"fiatjaf.com/nostr"
)
func (b *LMDBBackend) SaveEvent(ctx context.Context, evt *nostr.Event) error {