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
dms3
go-merkledag
Commits
0a64a3ec
Commit
0a64a3ec
authored
Oct 05, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update to libp2p 4.0.1 and propogate other changes
License: MIT Signed-off-by:
Jeromy
<
why@ipfs.io
>
parent
1f621d0a
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
21 additions
and
21 deletions
+21
-21
coding.go
coding.go
+3
-3
merkledag.go
merkledag.go
+3
-3
merkledag_test.go
merkledag_test.go
+4
-4
node.go
node.go
+4
-4
node_test.go
node_test.go
+1
-1
traverse/traverse.go
traverse/traverse.go
+1
-1
utils/diff.go
utils/diff.go
+2
-2
utils/utils.go
utils/utils.go
+1
-1
utils/utils_test.go
utils/utils_test.go
+2
-2
No files found.
coding.go
View file @
0a64a3ec
...
@@ -6,9 +6,9 @@ import (
...
@@ -6,9 +6,9 @@ import (
pb
"github.com/ipfs/go-ipfs/merkledag/pb"
pb
"github.com/ipfs/go-ipfs/merkledag/pb"
mh
"gx/ipfs/QmY
f7ng2hG5XBtJA3tN34DQ2GUN5HNksEw1rLDkmr6vGku
/go-multihash"
mh
"gx/ipfs/QmY
Dds3421prZgqKbLpEK7T9Aa2eVdQ7o3YarX1LVLdP2J
/go-multihash"
u
"gx/ipfs/Qm
ZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util
"
cid
"gx/ipfs/Qm
akyCk6Vnn16WEKjbkxieZmM2YLTzkFWizbmGowoYPjro/go-cid
"
cid
"gx/ipfs/Qm
fSc2xehWmWLnwwYR91Y8QF4xdASypTFVknutoKQS3GHp/go-cid
"
u
"gx/ipfs/Qm
b912gdngC1UWwTkhuW8knyRbcWeu5kqkxBpveLmW8bSr/go-ipfs-util
"
)
)
// for now, we use a PBNode intermediate thing.
// for now, we use a PBNode intermediate thing.
...
...
merkledag.go
View file @
0a64a3ec
...
@@ -7,11 +7,11 @@ import (
...
@@ -7,11 +7,11 @@ import (
"sync"
"sync"
bserv
"github.com/ipfs/go-ipfs/blockservice"
bserv
"github.com/ipfs/go-ipfs/blockservice"
key
"gx/ipfs/Qm
ce4Y4zg3sYr7xKM5UueS67vhNni6EeWgCRnb7MbLJMew
/go-key"
key
"gx/ipfs/Qm
YEoKZXHoAToWfhGF3vryhMn3WWhE1o2MasQ8uzY5iDi9
/go-key"
"context"
logging
"gx/ipfs/QmSpJByNKFX1sCsHBEp3R73FL4NF6FnQTEGyNAXHm2GS52/go-log"
logging
"gx/ipfs/QmSpJByNKFX1sCsHBEp3R73FL4NF6FnQTEGyNAXHm2GS52/go-log"
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
cid
"gx/ipfs/QmakyCk6Vnn16WEKjbkxieZmM2YLTzkFWizbmGowoYPjro/go-cid"
cid
"gx/ipfs/QmfSc2xehWmWLnwwYR91Y8QF4xdASypTFVknutoKQS3GHp/go-cid"
)
)
var
log
=
logging
.
Logger
(
"merkledag"
)
var
log
=
logging
.
Logger
(
"merkledag"
)
...
...
merkledag_test.go
View file @
0a64a3ec
...
@@ -19,11 +19,11 @@ import (
...
@@ -19,11 +19,11 @@ import (
mdpb
"github.com/ipfs/go-ipfs/merkledag/pb"
mdpb
"github.com/ipfs/go-ipfs/merkledag/pb"
dstest
"github.com/ipfs/go-ipfs/merkledag/test"
dstest
"github.com/ipfs/go-ipfs/merkledag/test"
uio
"github.com/ipfs/go-ipfs/unixfs/io"
uio
"github.com/ipfs/go-ipfs/unixfs/io"
key
"gx/ipfs/Qm
ce4Y4zg3sYr7xKM5UueS67vhNni6EeWgCRnb7MbLJMew
/go-key"
key
"gx/ipfs/Qm
YEoKZXHoAToWfhGF3vryhMn3WWhE1o2MasQ8uzY5iDi9
/go-key"
u
"gx/ipfs/QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util
"
"context
"
"gx/ipfs/Qm
Zy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context
"
cid
"gx/ipfs/Qm
akyCk6Vnn16WEKjbkxieZmM2YLTzkFWizbmGowoYPjro/go-cid
"
cid
"gx/ipfs/Qm
fSc2xehWmWLnwwYR91Y8QF4xdASypTFVknutoKQS3GHp/go-cid
"
u
"gx/ipfs/Qm
b912gdngC1UWwTkhuW8knyRbcWeu5kqkxBpveLmW8bSr/go-ipfs-util
"
)
)
func
TestNode
(
t
*
testing
.
T
)
{
func
TestNode
(
t
*
testing
.
T
)
{
...
...
node.go
View file @
0a64a3ec
...
@@ -3,11 +3,11 @@ package merkledag
...
@@ -3,11 +3,11 @@ package merkledag
import
(
import
(
"fmt"
"fmt"
"
gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/
context"
"context"
mh
"gx/ipfs/QmY
f7ng2hG5XBtJA3tN34DQ2GUN5HNksEw1rLDkmr6vGku
/go-multihash"
mh
"gx/ipfs/QmY
Dds3421prZgqKbLpEK7T9Aa2eVdQ7o3YarX1LVLdP2J
/go-multihash"
key
"gx/ipfs/Qm
ce4Y4zg3sYr7xKM5UueS67vhNni6EeWgCRnb7MbLJMew
/go-key"
key
"gx/ipfs/Qm
YEoKZXHoAToWfhGF3vryhMn3WWhE1o2MasQ8uzY5iDi9
/go-key"
cid
"gx/ipfs/Qm
fSc2xehWmWLnwwYR91Y8QF4xdASypTFVknutoKQS3GHp
/go-cid"
cid
"gx/ipfs/Qm
akyCk6Vnn16WEKjbkxieZmM2YLTzkFWizbmGowoYPjro
/go-cid"
)
)
var
ErrLinkNotFound
=
fmt
.
Errorf
(
"no link by that name"
)
var
ErrLinkNotFound
=
fmt
.
Errorf
(
"no link by that name"
)
...
...
node_test.go
View file @
0a64a3ec
...
@@ -6,7 +6,7 @@ import (
...
@@ -6,7 +6,7 @@ import (
.
"github.com/ipfs/go-ipfs/merkledag"
.
"github.com/ipfs/go-ipfs/merkledag"
mdtest
"github.com/ipfs/go-ipfs/merkledag/test"
mdtest
"github.com/ipfs/go-ipfs/merkledag/test"
"
gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/
context"
"context"
)
)
func
TestRemoveLink
(
t
*
testing
.
T
)
{
func
TestRemoveLink
(
t
*
testing
.
T
)
{
...
...
traverse/traverse.go
View file @
0a64a3ec
...
@@ -4,7 +4,7 @@ package traverse
...
@@ -4,7 +4,7 @@ package traverse
import
(
import
(
"errors"
"errors"
"
gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/
context"
"context"
mdag
"github.com/ipfs/go-ipfs/merkledag"
mdag
"github.com/ipfs/go-ipfs/merkledag"
)
)
...
...
utils/diff.go
View file @
0a64a3ec
...
@@ -7,8 +7,8 @@ import (
...
@@ -7,8 +7,8 @@ import (
dag
"github.com/ipfs/go-ipfs/merkledag"
dag
"github.com/ipfs/go-ipfs/merkledag"
context
"
gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/
context"
context
"context"
cid
"gx/ipfs/Qm
fSc2xehWmWLnwwYR91Y8QF4xdASypTFVknutoKQS3GHp
/go-cid"
cid
"gx/ipfs/Qm
akyCk6Vnn16WEKjbkxieZmM2YLTzkFWizbmGowoYPjro
/go-cid"
)
)
const
(
const
(
...
...
utils/utils.go
View file @
0a64a3ec
...
@@ -3,7 +3,7 @@ package dagutils
...
@@ -3,7 +3,7 @@ package dagutils
import
(
import
(
"errors"
"errors"
context
"
gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/
context"
context
"context"
ds
"gx/ipfs/QmbzuUusHqaLLoNTDEVLcSF6vZDHZDLPC7p4bztRvvkXxU/go-datastore"
ds
"gx/ipfs/QmbzuUusHqaLLoNTDEVLcSF6vZDHZDLPC7p4bztRvvkXxU/go-datastore"
syncds
"gx/ipfs/QmbzuUusHqaLLoNTDEVLcSF6vZDHZDLPC7p4bztRvvkXxU/go-datastore/sync"
syncds
"gx/ipfs/QmbzuUusHqaLLoNTDEVLcSF6vZDHZDLPC7p4bztRvvkXxU/go-datastore/sync"
...
...
utils/utils_test.go
View file @
0a64a3ec
...
@@ -7,8 +7,8 @@ import (
...
@@ -7,8 +7,8 @@ import (
mdtest
"github.com/ipfs/go-ipfs/merkledag/test"
mdtest
"github.com/ipfs/go-ipfs/merkledag/test"
path
"github.com/ipfs/go-ipfs/path"
path
"github.com/ipfs/go-ipfs/path"
context
"
gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/
context"
context
"context"
cid
"gx/ipfs/Qm
fSc2xehWmWLnwwYR91Y8QF4xdASypTFVknutoKQS3GHp
/go-cid"
cid
"gx/ipfs/Qm
akyCk6Vnn16WEKjbkxieZmM2YLTzkFWizbmGowoYPjro
/go-cid"
)
)
func
TestAddLink
(
t
*
testing
.
T
)
{
func
TestAddLink
(
t
*
testing
.
T
)
{
...
...
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