mirror of
https://github.com/logos-messaging/go-libp2p-rendezvous.git
synced 2026-01-05 22:33:11 +00:00
Merge pull request #11 from gfanton/feat/update-repo-name
This commit is contained in:
commit
ea43c800bd
4
.github/workflows/go.yml
vendored
4
.github/workflows/go.yml
vendored
@ -28,8 +28,8 @@ jobs:
|
|||||||
version: v1.50.1
|
version: v1.50.1
|
||||||
args: --timeout=10m
|
args: --timeout=10m
|
||||||
|
|
||||||
go-tests-on-linux:
|
go-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
golang: ['1.18', '1.19']
|
golang: ['1.18', '1.19']
|
||||||
|
|||||||
@ -11,7 +11,7 @@ import (
|
|||||||
inet "github.com/libp2p/go-libp2p/core/network"
|
inet "github.com/libp2p/go-libp2p/core/network"
|
||||||
"github.com/libp2p/go-libp2p/core/peer"
|
"github.com/libp2p/go-libp2p/core/peer"
|
||||||
|
|
||||||
pb "github.com/libp2p/go-libp2p-rendezvous/pb"
|
pb "github.com/berty/go-libp2p-rendezvous/pb"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import (
|
|||||||
"github.com/libp2p/go-libp2p/core/peer"
|
"github.com/libp2p/go-libp2p/core/peer"
|
||||||
mocknet "github.com/libp2p/go-libp2p/p2p/net/mock"
|
mocknet "github.com/libp2p/go-libp2p/p2p/net/mock"
|
||||||
|
|
||||||
"github.com/libp2p/go-libp2p-rendezvous/test_utils"
|
"github.com/berty/go-libp2p-rendezvous/test_utils"
|
||||||
"github.com/libp2p/go-libp2p/core/host"
|
"github.com/libp2p/go-libp2p/core/host"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
dbi "github.com/libp2p/go-libp2p-rendezvous/db"
|
dbi "github.com/berty/go-libp2p-rendezvous/db"
|
||||||
|
|
||||||
_ "github.com/mutecomm/go-sqlcipher/v4"
|
_ "github.com/mutecomm/go-sqlcipher/v4"
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
dbi "github.com/libp2p/go-libp2p-rendezvous/db"
|
dbi "github.com/berty/go-libp2p-rendezvous/db"
|
||||||
|
|
||||||
_ "github.com/mattn/go-sqlite3"
|
_ "github.com/mattn/go-sqlite3"
|
||||||
|
|
||||||
|
|||||||
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
|||||||
module github.com/libp2p/go-libp2p-rendezvous
|
module github.com/berty/go-libp2p-rendezvous
|
||||||
|
|
||||||
go 1.18
|
go 1.18
|
||||||
|
|
||||||
|
|||||||
4
proto.go
4
proto.go
@ -4,8 +4,8 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
db "github.com/libp2p/go-libp2p-rendezvous/db"
|
db "github.com/berty/go-libp2p-rendezvous/db"
|
||||||
pb "github.com/libp2p/go-libp2p-rendezvous/pb"
|
pb "github.com/berty/go-libp2p-rendezvous/pb"
|
||||||
|
|
||||||
logging "github.com/ipfs/go-log/v2"
|
logging "github.com/ipfs/go-log/v2"
|
||||||
"github.com/libp2p/go-libp2p/core/peer"
|
"github.com/libp2p/go-libp2p/core/peer"
|
||||||
|
|||||||
4
svc.go
4
svc.go
@ -8,8 +8,8 @@ import (
|
|||||||
inet "github.com/libp2p/go-libp2p/core/network"
|
inet "github.com/libp2p/go-libp2p/core/network"
|
||||||
"github.com/libp2p/go-libp2p/core/peer"
|
"github.com/libp2p/go-libp2p/core/peer"
|
||||||
|
|
||||||
db "github.com/libp2p/go-libp2p-rendezvous/db"
|
db "github.com/berty/go-libp2p-rendezvous/db"
|
||||||
pb "github.com/libp2p/go-libp2p-rendezvous/pb"
|
pb "github.com/berty/go-libp2p-rendezvous/pb"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@ -14,9 +14,9 @@ import (
|
|||||||
mocknet "github.com/libp2p/go-libp2p/p2p/net/mock"
|
mocknet "github.com/libp2p/go-libp2p/p2p/net/mock"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
db "github.com/libp2p/go-libp2p-rendezvous/db/sqlite"
|
db "github.com/berty/go-libp2p-rendezvous/db/sqlite"
|
||||||
pb "github.com/libp2p/go-libp2p-rendezvous/pb"
|
pb "github.com/berty/go-libp2p-rendezvous/pb"
|
||||||
"github.com/libp2p/go-libp2p-rendezvous/test_utils"
|
"github.com/berty/go-libp2p-rendezvous/test_utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func getRendezvousHosts(t *testing.T, ctx context.Context, m mocknet.Mocknet, n int) []host.Host {
|
func getRendezvousHosts(t *testing.T, ctx context.Context, m mocknet.Mocknet, n int) []host.Host {
|
||||||
|
|||||||
@ -13,7 +13,7 @@ import (
|
|||||||
"github.com/libp2p/go-libp2p/core/peer"
|
"github.com/libp2p/go-libp2p/core/peer"
|
||||||
"github.com/multiformats/go-multiaddr"
|
"github.com/multiformats/go-multiaddr"
|
||||||
|
|
||||||
pb "github.com/libp2p/go-libp2p-rendezvous/pb"
|
pb "github.com/berty/go-libp2p-rendezvous/pb"
|
||||||
)
|
)
|
||||||
|
|
||||||
type client struct {
|
type client struct {
|
||||||
|
|||||||
@ -6,8 +6,8 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
pb "github.com/berty/go-libp2p-rendezvous/pb"
|
||||||
ggio "github.com/gogo/protobuf/io"
|
ggio "github.com/gogo/protobuf/io"
|
||||||
pb "github.com/libp2p/go-libp2p-rendezvous/pb"
|
|
||||||
"github.com/libp2p/go-libp2p/core/host"
|
"github.com/libp2p/go-libp2p/core/host"
|
||||||
inet "github.com/libp2p/go-libp2p/core/network"
|
inet "github.com/libp2p/go-libp2p/core/network"
|
||||||
"github.com/libp2p/go-libp2p/core/peer"
|
"github.com/libp2p/go-libp2p/core/peer"
|
||||||
|
|||||||
@ -7,9 +7,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
rendezvous "github.com/libp2p/go-libp2p-rendezvous"
|
rendezvous "github.com/berty/go-libp2p-rendezvous"
|
||||||
db "github.com/libp2p/go-libp2p-rendezvous/db/sqlite"
|
db "github.com/berty/go-libp2p-rendezvous/db/sqlite"
|
||||||
"github.com/libp2p/go-libp2p-rendezvous/test_utils"
|
"github.com/berty/go-libp2p-rendezvous/test_utils"
|
||||||
"github.com/libp2p/go-libp2p/core/host"
|
"github.com/libp2p/go-libp2p/core/host"
|
||||||
mocknet "github.com/libp2p/go-libp2p/p2p/net/mock"
|
mocknet "github.com/libp2p/go-libp2p/p2p/net/mock"
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user