diff --git a/examples/multipro/echo.go b/examples/multipro/echo.go index 27374884..acba2b2f 100644 --- a/examples/multipro/echo.go +++ b/examples/multipro/echo.go @@ -6,13 +6,13 @@ import ( "fmt" "log" - inet "gx/ipfs/QmbD5yKbXahNvoMqzeuNyKQA9vAs9fUvJg2GXeWU1fVqY5/go-libp2p-net" + inet "github.com/libp2p/go-libp2p-net" p2p "github.com/avive/go-libp2p/examples/multipro/pb" uuid "github.com/google/uuid" assert "github.com/ipfs/go-ipfs/thirdparty/assert" + "github.com/libp2p/go-libp2p-host" protobufCodec "github.com/multiformats/go-multicodec/protobuf" - "gx/ipfs/QmRS46AyqtpJBsf1zmQdeizSDEzo1qkWR7rdEuPFAv8237/go-libp2p-host" ) // pattern: /protocol-name/request-or-response-message/version diff --git a/examples/multipro/main.go b/examples/multipro/main.go index 13d690e5..4f9e144c 100644 --- a/examples/multipro/main.go +++ b/examples/multipro/main.go @@ -6,12 +6,12 @@ import ( "log" "math/rand" + crypto "github.com/libp2p/go-libp2p-crypto" + peer "github.com/libp2p/go-libp2p-peer" + ps "github.com/libp2p/go-libp2p-peerstore" + swarm "github.com/libp2p/go-libp2p-swarm" bhost "github.com/libp2p/go-libp2p/p2p/host/basic" - ps "gx/ipfs/QmPgDWmTmuzvP7QE5zwo1TmjbJme9pmZHNujB2453jkCTr/go-libp2p-peerstore" - swarm "gx/ipfs/QmU219N3jn7QadVCeBUqGnAkwoXoUomrCwDuVQVuL7PB5W/go-libp2p-swarm" - ma "gx/ipfs/QmXY77cVe7rVRQXZZQRioukUM7aRW3BTcAgJe12MCtb3Ji/go-multiaddr" - peer "gx/ipfs/QmXYjuNuxVzXKJCfWasQk1RqkhVLDM9jtUKhqc2WPQmFSB/go-libp2p-peer" - crypto "gx/ipfs/QmaPbCnUMBohSGo3KnxEa2bHqyJVVeEEcwtqJAYxerieBo/go-libp2p-crypto" + ma "github.com/multiformats/go-multiaddr" ) // helper method - create a lib-p2p host to listen on a port diff --git a/examples/multipro/node.go b/examples/multipro/node.go index 7dfc96f7..67e6020a 100644 --- a/examples/multipro/node.go +++ b/examples/multipro/node.go @@ -7,11 +7,11 @@ import ( p2p "github.com/avive/go-libp2p/examples/multipro/pb" "github.com/gogo/protobuf/proto" + crypto "github.com/libp2p/go-libp2p-crypto" + host "github.com/libp2p/go-libp2p-host" + inet "github.com/libp2p/go-libp2p-net" + peer "github.com/libp2p/go-libp2p-peer" protobufCodec "github.com/multiformats/go-multicodec/protobuf" - host "gx/ipfs/QmRS46AyqtpJBsf1zmQdeizSDEzo1qkWR7rdEuPFAv8237/go-libp2p-host" - peer "gx/ipfs/QmXYjuNuxVzXKJCfWasQk1RqkhVLDM9jtUKhqc2WPQmFSB/go-libp2p-peer" - crypto "gx/ipfs/QmaPbCnUMBohSGo3KnxEa2bHqyJVVeEEcwtqJAYxerieBo/go-libp2p-crypto" - inet "gx/ipfs/QmbD5yKbXahNvoMqzeuNyKQA9vAs9fUvJg2GXeWU1fVqY5/go-libp2p-net" ) // node client version diff --git a/examples/multipro/ping.go b/examples/multipro/ping.go index a8508b33..4011d64c 100644 --- a/examples/multipro/ping.go +++ b/examples/multipro/ping.go @@ -8,9 +8,9 @@ import ( p2p "github.com/avive/go-libp2p/examples/multipro/pb" uuid "github.com/google/uuid" + "github.com/libp2p/go-libp2p-host" + inet "github.com/libp2p/go-libp2p-net" protobufCodec "github.com/multiformats/go-multicodec/protobuf" - "gx/ipfs/QmRS46AyqtpJBsf1zmQdeizSDEzo1qkWR7rdEuPFAv8237/go-libp2p-host" - inet "gx/ipfs/QmbD5yKbXahNvoMqzeuNyKQA9vAs9fUvJg2GXeWU1fVqY5/go-libp2p-net" ) // pattern: /protocol-name/request-or-response-message/version