fixed module path mismatch

This commit is contained in:
pippellia-btc
2025-06-12 15:55:29 +02:00
parent 15fd14dc01
commit 948f59affc
20 changed files with 62 additions and 44 deletions

View File

@@ -3,16 +3,17 @@ package main
import (
"context"
"fmt"
"github/pippellia-btc/crawler/pkg/config"
"github/pippellia-btc/crawler/pkg/graph"
"github/pippellia-btc/crawler/pkg/pipe"
"github/pippellia-btc/crawler/pkg/redb"
"log"
"os"
"runtime"
"sync"
"time"
"github.com/vertex-lab/crawler_v2/pkg/config"
"github.com/vertex-lab/crawler_v2/pkg/graph"
"github.com/vertex-lab/crawler_v2/pkg/pipe"
"github.com/vertex-lab/crawler_v2/pkg/redb"
"github.com/nbd-wtf/go-nostr"
"github.com/redis/go-redis/v9"
"github.com/vertex-lab/relay/pkg/eventstore"

View File

@@ -3,16 +3,17 @@ package main
import (
"context"
"fmt"
"github/pippellia-btc/crawler/pkg/config"
"github/pippellia-btc/crawler/pkg/graph"
"github/pippellia-btc/crawler/pkg/pipe"
"github/pippellia-btc/crawler/pkg/redb"
"log"
"os"
"runtime"
"sync"
"time"
"github.com/vertex-lab/crawler_v2/pkg/config"
"github.com/vertex-lab/crawler_v2/pkg/graph"
"github.com/vertex-lab/crawler_v2/pkg/pipe"
"github.com/vertex-lab/crawler_v2/pkg/redb"
"github.com/nbd-wtf/go-nostr"
"github.com/redis/go-redis/v9"
"github.com/vertex-lab/relay/pkg/eventstore"

2
go.mod
View File

@@ -1,4 +1,4 @@
module github/pippellia-btc/crawler
module github.com/vertex-lab/crawler_v2
go 1.24.1

View File

@@ -8,7 +8,7 @@ import (
"strings"
"time"
"github/pippellia-btc/crawler/pkg/pipe"
"github.com/vertex-lab/crawler_v2/pkg/pipe"
_ "github.com/joho/godotenv/autoload" // autoloading .env
"github.com/nbd-wtf/go-nostr"

View File

@@ -6,9 +6,10 @@ import (
"context"
"errors"
"fmt"
"github/pippellia-btc/crawler/pkg/graph"
"github/pippellia-btc/crawler/pkg/walks"
"math/rand/v2"
"github.com/vertex-lab/crawler_v2/pkg/graph"
"github.com/vertex-lab/crawler_v2/pkg/walks"
)
var ErrEmptyWalkStore = errors.New("the walk store is empty")

View File

@@ -3,12 +3,13 @@ package pagerank
import (
"context"
"fmt"
"github/pippellia-btc/crawler/pkg/graph"
"github/pippellia-btc/crawler/pkg/walks"
"math/rand/v2"
"reflect"
"strconv"
"testing"
"github.com/vertex-lab/crawler_v2/pkg/graph"
"github.com/vertex-lab/crawler_v2/pkg/walks"
)
func TestPersonalized(t *testing.T) {

View File

@@ -3,16 +3,17 @@ package pipe
import (
"context"
"fmt"
"github/pippellia-btc/crawler/pkg/graph"
"github/pippellia-btc/crawler/pkg/pagerank"
"github/pippellia-btc/crawler/pkg/redb"
"github/pippellia-btc/crawler/pkg/walks"
"log"
"os"
"os/signal"
"sync/atomic"
"syscall"
"time"
"github.com/vertex-lab/crawler_v2/pkg/graph"
"github.com/vertex-lab/crawler_v2/pkg/pagerank"
"github.com/vertex-lab/crawler_v2/pkg/redb"
"github.com/vertex-lab/crawler_v2/pkg/walks"
)
// WalksTracker tracks the number of walks that have been updated by [Processor].

View File

@@ -6,13 +6,14 @@ import (
"context"
"errors"
"fmt"
"github/pippellia-btc/crawler/pkg/graph"
"github/pippellia-btc/crawler/pkg/redb"
"github/pippellia-btc/crawler/pkg/walks"
"log"
"slices"
"time"
"github.com/vertex-lab/crawler_v2/pkg/graph"
"github.com/vertex-lab/crawler_v2/pkg/redb"
"github.com/vertex-lab/crawler_v2/pkg/walks"
"github.com/nbd-wtf/go-nostr"
"github.com/vertex-lab/relay/pkg/eventstore"
)

View File

@@ -6,11 +6,12 @@ import (
"context"
"errors"
"fmt"
"github/pippellia-btc/crawler/pkg/graph"
"strconv"
"strings"
"time"
"github.com/vertex-lab/crawler_v2/pkg/graph"
"github.com/nbd-wtf/go-nostr"
"github.com/redis/go-redis/v9"
)

View File

@@ -3,13 +3,14 @@ package redb
import (
"context"
"errors"
"github/pippellia-btc/crawler/pkg/graph"
"github/pippellia-btc/crawler/pkg/pagerank"
"github/pippellia-btc/crawler/pkg/walks"
"reflect"
"testing"
"time"
"github.com/vertex-lab/crawler_v2/pkg/graph"
"github.com/vertex-lab/crawler_v2/pkg/pagerank"
"github.com/vertex-lab/crawler_v2/pkg/walks"
"github.com/nbd-wtf/go-nostr"
"github.com/redis/go-redis/v9"
)

View File

@@ -4,11 +4,12 @@ import (
"context"
"errors"
"fmt"
"github/pippellia-btc/crawler/pkg/graph"
"github/pippellia-btc/crawler/pkg/walks"
"strconv"
"strings"
"time"
"github.com/vertex-lab/crawler_v2/pkg/graph"
"github.com/vertex-lab/crawler_v2/pkg/walks"
)
var (

View File

@@ -5,11 +5,12 @@ import (
"context"
"errors"
"fmt"
"github/pippellia-btc/crawler/pkg/graph"
"github/pippellia-btc/crawler/pkg/walks"
"slices"
"strconv"
"github.com/vertex-lab/crawler_v2/pkg/graph"
"github.com/vertex-lab/crawler_v2/pkg/walks"
"github.com/redis/go-redis/v9"
)

View File

@@ -2,12 +2,13 @@ package redb
import (
"errors"
"github/pippellia-btc/crawler/pkg/graph"
"github/pippellia-btc/crawler/pkg/walks"
"reflect"
"strconv"
"testing"
"github.com/vertex-lab/crawler_v2/pkg/graph"
"github.com/vertex-lab/crawler_v2/pkg/walks"
"github.com/redis/go-redis/v9"
)

View File

@@ -4,10 +4,11 @@ import (
"container/list"
"context"
"fmt"
"github/pippellia-btc/crawler/pkg/graph"
"log"
"os"
"strconv"
"github.com/vertex-lab/crawler_v2/pkg/graph"
)
type Walker interface {

View File

@@ -4,11 +4,12 @@ import (
"context"
"errors"
"fmt"
"github/pippellia-btc/crawler/pkg/graph"
"math/rand/v2"
"reflect"
"strconv"
"testing"
"github.com/vertex-lab/crawler_v2/pkg/graph"
)
var ctx = context.Background()

View File

@@ -5,9 +5,10 @@ import (
"context"
"errors"
"fmt"
"github/pippellia-btc/crawler/pkg/graph"
"math/rand/v2"
"slices"
"github.com/vertex-lab/crawler_v2/pkg/graph"
)
var (

View File

@@ -4,11 +4,12 @@ import (
"context"
"errors"
"fmt"
"github/pippellia-btc/crawler/pkg/graph"
"math"
"reflect"
"strconv"
"testing"
"github.com/vertex-lab/crawler_v2/pkg/graph"
)
func TestGenerate(t *testing.T) {

View File

@@ -3,14 +3,15 @@ package e2e_test
import (
"context"
"fmt"
"github/pippellia-btc/crawler/pkg/graph"
"github/pippellia-btc/crawler/pkg/pagerank"
"github/pippellia-btc/crawler/pkg/redb"
"github/pippellia-btc/crawler/pkg/walks"
test "github/pippellia-btc/crawler/tests/random"
"math"
"testing"
"github.com/vertex-lab/crawler_v2/pkg/graph"
"github.com/vertex-lab/crawler_v2/pkg/pagerank"
"github.com/vertex-lab/crawler_v2/pkg/redb"
"github.com/vertex-lab/crawler_v2/pkg/walks"
test "github.com/vertex-lab/crawler_v2/tests/random"
"github.com/redis/go-redis/v9"
)

View File

@@ -2,10 +2,11 @@ package random
import (
"context"
"github/pippellia-btc/crawler/pkg/pagerank"
"github/pippellia-btc/crawler/pkg/walks"
"math/rand/v2"
"testing"
"github.com/vertex-lab/crawler_v2/pkg/pagerank"
"github.com/vertex-lab/crawler_v2/pkg/walks"
)
func TestPagerankStatic(t *testing.T) {

View File

@@ -2,10 +2,11 @@ package random
import (
"context"
"github/pippellia-btc/crawler/pkg/graph"
"github/pippellia-btc/crawler/pkg/walks"
"math"
"strconv"
"github.com/vertex-lab/crawler_v2/pkg/graph"
"github.com/vertex-lab/crawler_v2/pkg/walks"
)
type WalkStore struct {