Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-kad-dht
Commits
86e473a2
Commit
86e473a2
authored
Apr 29, 2021
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update deps
- go-libp2p - protobuf (and regen)
parent
71598922
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
114 additions
and
70 deletions
+114
-70
dht_filters_test.go
dht_filters_test.go
+11
-11
go.mod
go.mod
+12
-12
go.sum
go.sum
+89
-39
pb/dht.pb.go
pb/dht.pb.go
+2
-8
No files found.
dht_filters_test.go
View file @
86e473a2
...
...
@@ -37,7 +37,7 @@ var _ network.Conn = (*mockConn)(nil)
func
(
m
*
mockConn
)
ID
()
string
{
return
"0"
}
func
(
m
*
mockConn
)
Close
()
error
{
return
nil
}
func
(
m
*
mockConn
)
NewStream
()
(
network
.
Stream
,
error
)
{
return
nil
,
nil
}
func
(
m
*
mockConn
)
NewStream
(
context
.
Context
)
(
network
.
Stream
,
error
)
{
return
nil
,
nil
}
func
(
m
*
mockConn
)
GetStreams
()
[]
network
.
Stream
{
return
[]
network
.
Stream
{}
}
func
(
m
*
mockConn
)
Stat
()
network
.
Stat
{
return
network
.
Stat
{
Direction
:
network
.
DirOutbound
}
}
func
(
m
*
mockConn
)
LocalMultiaddr
()
ma
.
Multiaddr
{
return
m
.
local
.
Addrs
[
0
]
}
...
...
go.mod
View file @
86e473a2
...
...
@@ -3,33 +3,33 @@ module github.com/libp2p/go-libp2p-kad-dht
go 1.14
require (
github.com/gogo/protobuf
v1.3.
1
github.com/google/gopacket
v1.1.1
8
github.com/google/uuid
v1.
1.2
github.com/hashicorp/go-multierror
v1.1.
0
github.com/gogo/protobuf
v1.3.
2
github.com/google/gopacket
v1.1.1
9
github.com/google/uuid
v1.
2.0
github.com/hashicorp/go-multierror
v1.1.
1
github.com/hashicorp/golang-lru
v0.5.4
github.com/ipfs/go-cid
v0.0.7
github.com/ipfs/go-datastore
v0.4.5
github.com/ipfs/go-detect-race
v0.0.1
github.com/ipfs/go-ipfs-util
v0.0.2
github.com/ipfs/go-ipns
v0.0.2
github.com/ipfs/go-log
v1.0.
4
github.com/ipfs/go-log
v1.0.
5
github.com/jbenet/goprocess
v0.1.4
github.com/libp2p/go-eventbus
v0.2.1
github.com/libp2p/go-libp2p
v0.1
2
.0
github.com/libp2p/go-libp2p-core
v0.
7
.0
github.com/libp2p/go-libp2p
v0.1
3
.0
github.com/libp2p/go-libp2p-core
v0.
8
.0
github.com/libp2p/go-libp2p-kbucket
v0.4.7
github.com/libp2p/go-libp2p-peerstore
v0.2.
6
github.com/libp2p/go-libp2p-peerstore
v0.2.
7
github.com/libp2p/go-libp2p-record
v0.1.3
github.com/libp2p/go-libp2p-routing-helpers
v0.2.3
github.com/libp2p/go-libp2p-swarm
v0.
3.1
github.com/libp2p/go-libp2p-testing
v0.
3
.0
github.com/libp2p/go-libp2p-swarm
v0.
4.0
github.com/libp2p/go-libp2p-testing
v0.
4
.0
github.com/libp2p/go-msgio
v0.0.6
github.com/libp2p/go-netroute
v0.1.
3
github.com/libp2p/go-netroute
v0.1.
6
github.com/multiformats/go-base32
v0.0.3
github.com/multiformats/go-multiaddr
v0.3.1
github.com/multiformats/go-multibase
v0.0.3
github.com/multiformats/go-multihash
v0.0.1
4
github.com/multiformats/go-multihash
v0.0.1
5
github.com/multiformats/go-multistream
v0.2.0
github.com/stretchr/testify
v1.6.1
github.com/whyrusleeping/go-keyspace
v0.0.0-20160322163242-5b898ac5add1
...
...
go.sum
View file @
86e473a2
This diff is collapsed.
Click to expand it.
pb/dht.pb.go
View file @
86e473a2
...
...
@@ -721,10 +721,7 @@ func (m *Message) Unmarshal(dAtA []byte) error {
if
err
!=
nil
{
return
err
}
if
skippy
<
0
{
return
ErrInvalidLengthDht
}
if
(
iNdEx
+
skippy
)
<
0
{
if
(
skippy
<
0
)
||
(
iNdEx
+
skippy
)
<
0
{
return
ErrInvalidLengthDht
}
if
(
iNdEx
+
skippy
)
>
l
{
...
...
@@ -859,10 +856,7 @@ func (m *Message_Peer) Unmarshal(dAtA []byte) error {
if
err
!=
nil
{
return
err
}
if
skippy
<
0
{
return
ErrInvalidLengthDht
}
if
(
iNdEx
+
skippy
)
<
0
{
if
(
skippy
<
0
)
||
(
iNdEx
+
skippy
)
<
0
{
return
ErrInvalidLengthDht
}
if
(
iNdEx
+
skippy
)
>
l
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment