Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmahmann committed Jan 3, 2022
1 parent 9c299ee commit 6d40b85
Show file tree
Hide file tree
Showing 4 changed files with 360 additions and 96 deletions.
15 changes: 1 addition & 14 deletions dht.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"github.com/libp2p/go-libp2p-core/peer"
"github.com/libp2p/go-libp2p-core/protocol"
dhtpb "github.com/libp2p/go-libp2p-kad-dht/pb"
record "github.com/libp2p/go-libp2p-record"
"github.com/libp2p/go-msgio/protoio"
)

Expand All @@ -19,7 +18,7 @@ func dhtProtocolMessenger(proto protocol.ID, h host.Host) (*dhtpb.ProtocolMessen
protocols: []protocol.ID{proto},
timeout: time.Second * 5,
}
messenger, err := dhtpb.NewProtocolMessenger(ms, dhtpb.WithValidator(&nilValidator{}))
messenger, err := dhtpb.NewProtocolMessenger(ms)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -89,15 +88,3 @@ func (ms *dhtMsgSender) SendMessage(ctx context.Context, p peer.ID, pmes *dhtpb.
}

var _ dhtpb.MessageSender = (*dhtMsgSender)(nil)

type nilValidator struct{}

func (n nilValidator) Validate(key string, value []byte) error {
return nil
}

func (n nilValidator) Select(key string, values [][]byte) (int, error) {
panic("implement me")
}

var _ record.Validator = (*nilValidator)(nil)
16 changes: 8 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ module github.com/aschmahmann/ipfs-check
go 1.16

require (
github.com/ipfs/go-bitswap v0.3.4
github.com/ipfs/go-bitswap v0.5.1
github.com/ipfs/go-cid v0.0.7
github.com/ipfs/go-ipfs-routing v0.1.0
github.com/ipfs/go-ipfs-routing v0.2.1
github.com/ipfs/go-ipns v0.1.2
github.com/libp2p/go-libp2p v0.14.4
github.com/libp2p/go-libp2p v0.16.0
github.com/libp2p/go-libp2p-connmgr v0.2.4
github.com/libp2p/go-libp2p-core v0.8.6
github.com/libp2p/go-libp2p-kad-dht v0.13.0
github.com/libp2p/go-libp2p-quic-transport v0.11.2
github.com/libp2p/go-libp2p-core v0.11.0
github.com/libp2p/go-libp2p-kad-dht v0.15.0
github.com/libp2p/go-libp2p-quic-transport v0.15.2
github.com/libp2p/go-libp2p-record v0.1.3
github.com/libp2p/go-msgio v0.0.6
github.com/multiformats/go-multiaddr v0.3.3
github.com/libp2p/go-msgio v0.1.0
github.com/multiformats/go-multiaddr v0.4.1
)
Loading

0 comments on commit 6d40b85

Please sign in to comment.