Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org name change #127

Merged
merged 1 commit into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion event/chanqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package event
import (
"context"

"github.com/plprobelab/go-kademlia/util"
"github.com/probe-lab/go-kademlia/util"
)

// ChanQueue is a trivial queue implementation using a channel
Expand Down
18 changes: 9 additions & 9 deletions examples/connect/findpeer.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ import (
"github.com/libp2p/go-libp2p/core/peer"
"github.com/multiformats/go-multiaddr"

"github.com/plprobelab/go-kademlia/event"
tutil "github.com/plprobelab/go-kademlia/examples/util"
"github.com/plprobelab/go-kademlia/kad"
"github.com/plprobelab/go-kademlia/key"
"github.com/plprobelab/go-kademlia/libp2p"
"github.com/plprobelab/go-kademlia/network/address"
"github.com/plprobelab/go-kademlia/query/simplequery"
"github.com/plprobelab/go-kademlia/routing/simplert"
"github.com/plprobelab/go-kademlia/util"
"github.com/probe-lab/go-kademlia/event"
tutil "github.com/probe-lab/go-kademlia/examples/util"
"github.com/probe-lab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/key"
"github.com/probe-lab/go-kademlia/libp2p"
"github.com/probe-lab/go-kademlia/network/address"
"github.com/probe-lab/go-kademlia/query/simplequery"
"github.com/probe-lab/go-kademlia/routing/simplert"
"github.com/probe-lab/go-kademlia/util"
)

var protocolID address.ProtocolID = "/ipfs/kad/1.0.0" // IPFS DHT network protocol ID
Expand Down
18 changes: 9 additions & 9 deletions examples/dispatchquery/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ import (
"go.opentelemetry.io/otel/sdk/trace"
semconv "go.opentelemetry.io/otel/semconv/v1.17.0"

"github.com/plprobelab/go-kademlia/event"
"github.com/plprobelab/go-kademlia/kad"
"github.com/plprobelab/go-kademlia/key"
"github.com/plprobelab/go-kademlia/libp2p"
sq "github.com/plprobelab/go-kademlia/query/simplequery"
"github.com/plprobelab/go-kademlia/routing/simplert"
"github.com/plprobelab/go-kademlia/server/basicserver"
"github.com/plprobelab/go-kademlia/sim"
"github.com/plprobelab/go-kademlia/util"
"github.com/probe-lab/go-kademlia/event"
"github.com/probe-lab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/key"
"github.com/probe-lab/go-kademlia/libp2p"
sq "github.com/probe-lab/go-kademlia/query/simplequery"
"github.com/probe-lab/go-kademlia/routing/simplert"
"github.com/probe-lab/go-kademlia/server/basicserver"
"github.com/probe-lab/go-kademlia/sim"
"github.com/probe-lab/go-kademlia/util"
)

const (
Expand Down
22 changes: 11 additions & 11 deletions examples/fullsim/findnode.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ import (

"github.com/benbjohnson/clock"

"github.com/plprobelab/go-kademlia/event"
"github.com/plprobelab/go-kademlia/internal/kadtest"
"github.com/plprobelab/go-kademlia/kad"
"github.com/plprobelab/go-kademlia/key"
"github.com/plprobelab/go-kademlia/network/address"
"github.com/plprobelab/go-kademlia/network/endpoint"
sq "github.com/plprobelab/go-kademlia/query/simplequery"
"github.com/plprobelab/go-kademlia/routing/simplert"
"github.com/plprobelab/go-kademlia/server"
"github.com/plprobelab/go-kademlia/sim"
"github.com/plprobelab/go-kademlia/util"
"github.com/probe-lab/go-kademlia/event"
"github.com/probe-lab/go-kademlia/internal/kadtest"
"github.com/probe-lab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/key"
"github.com/probe-lab/go-kademlia/network/address"
"github.com/probe-lab/go-kademlia/network/endpoint"
sq "github.com/probe-lab/go-kademlia/query/simplequery"
"github.com/probe-lab/go-kademlia/routing/simplert"
"github.com/probe-lab/go-kademlia/server"
"github.com/probe-lab/go-kademlia/sim"
"github.com/probe-lab/go-kademlia/util"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/plprobelab/go-kademlia
module github.com/probe-lab/go-kademlia

go 1.21

Expand Down
4 changes: 2 additions & 2 deletions internal/kadtest/ids.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"crypto/sha256"
"net"

"github.com/plprobelab/go-kademlia/kad"
"github.com/plprobelab/go-kademlia/key"
"github.com/probe-lab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/key"
)

// ID is a concrete implementation of the NodeID interface.
Expand Down
4 changes: 2 additions & 2 deletions internal/kadtest/message.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package kadtest

import (
"github.com/plprobelab/go-kademlia/kad"
"github.com/plprobelab/go-kademlia/key"
"github.com/probe-lab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/key"
)

// StrAddr is a simple implementation of kad.Address that uses a string to represent the address.
Expand Down
2 changes: 1 addition & 1 deletion internal/kadtest/rand.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"math/rand"
"strconv"

"github.com/plprobelab/go-kademlia/key"
"github.com/probe-lab/go-kademlia/key"
)

var rng = rand.New(rand.NewSource(299792458))
Expand Down
2 changes: 1 addition & 1 deletion key/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"math"

"github.com/plprobelab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/kad"
)

// ErrInvalidDataLength is the error returned when attempting to construct a key from binary data of the wrong length.
Expand Down
2 changes: 1 addition & 1 deletion key/key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/plprobelab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/kad"
)

func TestKey256(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion key/op.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"sort"
"strings"

"github.com/plprobelab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/kad"
)

// Equal reports whether two keys have equal numeric values.
Expand Down
4 changes: 2 additions & 2 deletions key/trie/trie.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
package trie

import (
"github.com/plprobelab/go-kademlia/kad"
"github.com/plprobelab/go-kademlia/key"
"github.com/probe-lab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/key"
)

// Trie is a trie for equal-length bit vectors, which stores values only in the leaves.
Expand Down
6 changes: 3 additions & 3 deletions key/trie/trie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"math/rand"
"testing"

"github.com/plprobelab/go-kademlia/internal/kadtest"
"github.com/probe-lab/go-kademlia/internal/kadtest"

"github.com/plprobelab/go-kademlia/kad"
"github.com/plprobelab/go-kademlia/key"
"github.com/probe-lab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/key"
"github.com/stretchr/testify/require"
)

Expand Down
4 changes: 2 additions & 2 deletions libp2p/addrinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"github.com/libp2p/go-libp2p/core/peer"
"github.com/multiformats/go-multiaddr"

"github.com/plprobelab/go-kademlia/kad"
"github.com/plprobelab/go-kademlia/key"
"github.com/probe-lab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/key"
)

type AddrInfo struct {
Expand Down
6 changes: 3 additions & 3 deletions libp2p/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"github.com/libp2p/go-libp2p/core/peer"
"github.com/multiformats/go-multiaddr"

"github.com/plprobelab/go-kademlia/kad"
"github.com/plprobelab/go-kademlia/key"
"github.com/plprobelab/go-kademlia/network/endpoint"
"github.com/probe-lab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/key"
"github.com/probe-lab/go-kademlia/network/endpoint"
)

var ErrNoValidAddresses = errors.New("no valid addresses")
Expand Down
6 changes: 3 additions & 3 deletions libp2p/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"github.com/multiformats/go-multiaddr"
"github.com/stretchr/testify/require"

"github.com/plprobelab/go-kademlia/kad"
"github.com/plprobelab/go-kademlia/key"
"github.com/plprobelab/go-kademlia/sim"
"github.com/probe-lab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/key"
"github.com/probe-lab/go-kademlia/sim"
)

var (
Expand Down
12 changes: 6 additions & 6 deletions libp2p/libp2pendpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ import (
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/trace"

"github.com/plprobelab/go-kademlia/event"
"github.com/plprobelab/go-kademlia/kad"
"github.com/plprobelab/go-kademlia/key"
"github.com/plprobelab/go-kademlia/network/address"
"github.com/plprobelab/go-kademlia/network/endpoint"
"github.com/plprobelab/go-kademlia/util"
"github.com/probe-lab/go-kademlia/event"
"github.com/probe-lab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/key"
"github.com/probe-lab/go-kademlia/network/address"
"github.com/probe-lab/go-kademlia/network/endpoint"
"github.com/probe-lab/go-kademlia/util"
)

type DialReportFn func(context.Context, bool)
Expand Down
14 changes: 7 additions & 7 deletions libp2p/libp2pendpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ import (
manet "github.com/multiformats/go-multiaddr/net"
"github.com/stretchr/testify/require"

"github.com/plprobelab/go-kademlia/event"
"github.com/plprobelab/go-kademlia/internal/kadtest"
"github.com/plprobelab/go-kademlia/kad"
"github.com/plprobelab/go-kademlia/key"
"github.com/plprobelab/go-kademlia/network/address"
"github.com/plprobelab/go-kademlia/network/endpoint"
"github.com/plprobelab/go-kademlia/sim"
"github.com/probe-lab/go-kademlia/event"
"github.com/probe-lab/go-kademlia/internal/kadtest"
"github.com/probe-lab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/key"
"github.com/probe-lab/go-kademlia/network/address"
"github.com/probe-lab/go-kademlia/network/endpoint"
"github.com/probe-lab/go-kademlia/sim"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions libp2p/peerid.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
mh "github.com/multiformats/go-multihash"
mhreg "github.com/multiformats/go-multihash/core"

"github.com/plprobelab/go-kademlia/kad"
"github.com/plprobelab/go-kademlia/key"
"github.com/probe-lab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/key"
)

type PeerID struct {
Expand Down
2 changes: 1 addition & 1 deletion libp2p/proto_msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package libp2p
import (
"google.golang.org/protobuf/proto"

"github.com/plprobelab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/kad"
)

type ProtoKadMessage interface {
Expand Down
16 changes: 8 additions & 8 deletions libp2p/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import (
"github.com/multiformats/go-multiaddr"
"github.com/stretchr/testify/require"

"github.com/plprobelab/go-kademlia/event"
"github.com/plprobelab/go-kademlia/internal/kadtest"
"github.com/plprobelab/go-kademlia/kad"
"github.com/plprobelab/go-kademlia/key"
"github.com/plprobelab/go-kademlia/network/address"
"github.com/plprobelab/go-kademlia/query/simplequery"
"github.com/plprobelab/go-kademlia/routing/simplert"
"github.com/plprobelab/go-kademlia/sim"
"github.com/probe-lab/go-kademlia/event"
"github.com/probe-lab/go-kademlia/internal/kadtest"
"github.com/probe-lab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/key"
"github.com/probe-lab/go-kademlia/network/address"
"github.com/probe-lab/go-kademlia/query/simplequery"
"github.com/probe-lab/go-kademlia/routing/simplert"
"github.com/probe-lab/go-kademlia/sim"
)

// TestLibp2pCornerCase tests that the newRequest(ctx) can fail fast if the
Expand Down
4 changes: 2 additions & 2 deletions network/endpoint/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"time"

"github.com/plprobelab/go-kademlia/kad"
"github.com/plprobelab/go-kademlia/network/address"
"github.com/probe-lab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/network/address"
)

// Connectedness signals the capacity for a connection with a given node.
Expand Down
6 changes: 3 additions & 3 deletions query/iter.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package query
import (
"context"

"github.com/plprobelab/go-kademlia/kad"
"github.com/plprobelab/go-kademlia/key"
"github.com/plprobelab/go-kademlia/key/trie"
"github.com/probe-lab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/key"
"github.com/probe-lab/go-kademlia/key/trie"
)

// A NodeIter iterates nodes according to some strategy.
Expand Down
4 changes: 2 additions & 2 deletions query/iter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

"github.com/stretchr/testify/require"

"github.com/plprobelab/go-kademlia/internal/kadtest"
"github.com/plprobelab/go-kademlia/key"
"github.com/probe-lab/go-kademlia/internal/kadtest"
"github.com/probe-lab/go-kademlia/key"
)

func TestClosestNodesIter(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion query/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package query
import (
"time"

"github.com/plprobelab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/kad"
)

type NodeStatus[K kad.Key[K]] struct {
Expand Down
8 changes: 4 additions & 4 deletions query/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (

"github.com/benbjohnson/clock"

"github.com/plprobelab/go-kademlia/kad"
"github.com/plprobelab/go-kademlia/kaderr"
"github.com/plprobelab/go-kademlia/network/address"
"github.com/plprobelab/go-kademlia/util"
"github.com/probe-lab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/kaderr"
"github.com/probe-lab/go-kademlia/network/address"
"github.com/probe-lab/go-kademlia/util"
)

type Pool[K kad.Key[K], A kad.Address[A]] struct {
Expand Down
8 changes: 4 additions & 4 deletions query/pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"github.com/benbjohnson/clock"
"github.com/stretchr/testify/require"

"github.com/plprobelab/go-kademlia/internal/kadtest"
"github.com/plprobelab/go-kademlia/kad"
"github.com/plprobelab/go-kademlia/key"
"github.com/plprobelab/go-kademlia/network/address"
"github.com/probe-lab/go-kademlia/internal/kadtest"
"github.com/probe-lab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/key"
"github.com/probe-lab/go-kademlia/network/address"
)

func TestPoolConfigValidate(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions query/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (

"github.com/benbjohnson/clock"

"github.com/plprobelab/go-kademlia/kad"
"github.com/plprobelab/go-kademlia/kaderr"
"github.com/plprobelab/go-kademlia/key"
"github.com/plprobelab/go-kademlia/network/address"
"github.com/plprobelab/go-kademlia/util"
"github.com/probe-lab/go-kademlia/kad"
"github.com/probe-lab/go-kademlia/kaderr"
"github.com/probe-lab/go-kademlia/key"
"github.com/probe-lab/go-kademlia/network/address"
"github.com/probe-lab/go-kademlia/util"
)

type QueryID string
Expand Down
Loading