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
2e4e4baa
Commit
2e4e4baa
authored
Nov 28, 2016
by
Jeromy Johnson
Committed by
GitHub
Nov 28, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #42 from libp2p/deps/cid-0.7.7
update datastore and go-cid dependencies
parents
5886af81
6c8be4d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
package.json
package.json
+16
-16
providers/providers_test.go
providers/providers_test.go
+2
-2
No files found.
package.json
View file @
2e4e4baa
...
...
@@ -48,9 +48,9 @@
},
{
"author"
:
"jbenet"
,
"hash"
:
"Qm
bzuUusHqaLLoNTDEVLcSF6vZDHZDLPC7p4bztRvvkXxU
"
,
"hash"
:
"Qm
RWDav6mzWseLWeYfVd5fvUKiVe9xNH29YfMF438fG364
"
,
"name"
:
"go-datastore"
,
"version"
:
"1.
0
.0"
"version"
:
"1.
2
.0"
},
{
"author"
:
"hashicorp"
,
...
...
@@ -60,9 +60,9 @@
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
XXCcQ7CLg5a81Ui9TTR35QcR4y7ZyihxwfjqaHfUVcVo
"
,
"hash"
:
"Qm
eXj9VAjmYQZxpmVz7VzccbJrpmr8qkCDSjfVNsPTWTYU
"
,
"name"
:
"go-libp2p-peerstore"
,
"version"
:
"1.
3
.0"
"version"
:
"1.
4
.0"
},
{
"author"
:
"whyrusleeping"
,
...
...
@@ -72,9 +72,9 @@
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
Sp3diFRRv4zR25nHU4MWNCdhT4R6cxrTPLx12MCi1TZb
"
,
"hash"
:
"Qm
Y6k4rtt8FZvU87itWvuWTPJoCdkLZF48J55Aa1UxLFeY
"
,
"name"
:
"autobatch"
,
"version"
:
"0.2.
2
"
"version"
:
"0.2.
4
"
},
{
"author"
:
"kubuxu"
,
...
...
@@ -84,9 +84,9 @@
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
aEcA713Y54EtSsj7ZYfwXmsTfxrJ4oywr1iFt1d6LKY5
"
,
"hash"
:
"Qm
bHpE8HYbHdwAxyiJMsPzywVyZKLLHNi5HemfVCPwo839
"
,
"name"
:
"go-testutil"
,
"version"
:
"1.1.
0
"
"version"
:
"1.1.
1
"
},
{
"author"
:
"whyrusleeping"
,
...
...
@@ -96,15 +96,15 @@
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
UKePKcUEXwdvJENZJ6z8mJjPaxLsDZ3V9CZjPPtyawPm
"
,
"hash"
:
"Qm
RVHVr38ChANF2PUMNKQs7Q4uVWCLVabrfcTG9taNbcVy
"
,
"name"
:
"go-libp2p-kbucket"
,
"version"
:
"2.1.
0
"
"version"
:
"2.1.
2
"
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
NMFSdyAouFbVrsFA3myZ1J6GYKgRhDHYwBtiSUCjbkK1
"
,
"hash"
:
"Qm
bkGVaN9W6RYJK4Ws5FvMKXKDqdRQ5snhtaa92qP6L8eU
"
,
"name"
:
"go-libp2p-routing"
,
"version"
:
"2.2.
4
"
"version"
:
"2.2.
5
"
},
{
"author"
:
"whyrusleeping"
,
...
...
@@ -126,15 +126,15 @@
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
b6UFbVu1grhv5o5KnouvtZ6cqdrjXj6zLejAHWunxgCt
"
,
"hash"
:
"Qm
PTGbC34bPKaUm9wTxBo7zSCac7pDuG42ZmnXC718CKZZ
"
,
"name"
:
"go-libp2p-host"
,
"version"
:
"1.3.
0
"
"version"
:
"1.3.
1
"
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
ZyBJGpRnbQ7oUstoGNZbhXC4HJuFUCgpp8pmsVTUwdS3
"
,
"hash"
:
"Qm
bzCT1CwxVZ2ednptC9RavuJe7Bv8DDi2Ne89qUrA37XM
"
,
"name"
:
"go-libp2p"
,
"version"
:
"4.
2
.0"
"version"
:
"4.
3
.0"
}
],
"gxVersion"
:
"0.4.0"
,
...
...
providers/providers_test.go
View file @
2e4e4baa
...
...
@@ -214,8 +214,8 @@ func TestUponCacheMissProvidersAreReadFromDatastore(t *testing.T) {
ctx
:=
context
.
Background
()
p1
,
p2
:=
peer
.
ID
(
"a"
),
peer
.
ID
(
"b"
)
c1
:=
cid
.
NewCidV1
(
cid
.
CBOR
,
u
.
Hash
([]
byte
(
"1"
)))
c2
:=
cid
.
NewCidV1
(
cid
.
CBOR
,
u
.
Hash
([]
byte
(
"2"
)))
c1
:=
cid
.
NewCidV1
(
cid
.
Dag
CBOR
,
u
.
Hash
([]
byte
(
"1"
)))
c2
:=
cid
.
NewCidV1
(
cid
.
Dag
CBOR
,
u
.
Hash
([]
byte
(
"2"
)))
pm
:=
NewProviderManager
(
ctx
,
p1
,
ds
.
NewMapDatastore
())
pm
.
AddProvider
(
ctx
,
c1
,
p1
)
...
...
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