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
2b1de3e6
Commit
2b1de3e6
authored
Jan 24, 2018
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gx: mass update
License: MIT Signed-off-by:
Steven Allen
<
steven@stebalien.com
>
parent
329bbe24
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
35 additions
and
35 deletions
+35
-35
batch.go
batch.go
+3
-3
coding.go
coding.go
+3
-3
merkledag.go
merkledag.go
+3
-3
merkledag_test.go
merkledag_test.go
+4
-4
node.go
node.go
+3
-3
node_test.go
node_test.go
+1
-1
raw.go
raw.go
+4
-4
test/utils.go
test/utils.go
+2
-2
traverse/traverse.go
traverse/traverse.go
+1
-1
traverse/traverse_test.go
traverse/traverse_test.go
+1
-1
utils/diff.go
utils/diff.go
+2
-2
utils/diffenum.go
utils/diffenum.go
+2
-2
utils/diffenum_test.go
utils/diffenum_test.go
+2
-2
utils/utils.go
utils/utils.go
+3
-3
utils/utils_test.go
utils/utils_test.go
+1
-1
No files found.
batch.go
View file @
2b1de3e6
...
...
@@ -3,9 +3,9 @@ package merkledag
import
(
"runtime"
node
"gx/ipfs/Qm
NwUEK7QbwSqyKBu3mMtToo8SUc6wQJ7gdZq4gGGJqfnf/go-ipld-format
"
blocks
"gx/ipfs/Qm
YsEQydGrsxNZfAiskvQ76N2xE9hDQtSAkRSynwMiUK3c/go-block
-format"
cid
"gx/ipfs/Qme
Srf6pzut73u6zLQkRFQ3ygt3k6XFT2kjdYP8Tnkwwyg/go-cid
"
cid
"gx/ipfs/Qm
cZfnkapfECQGcLZaf9B79NRg7cRa9EnZh4LSbkCzwNvY/go-cid
"
node
"gx/ipfs/Qm
e5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES/go-ipld
-format"
blocks
"gx/ipfs/Qme
j7nf81hi2x2tvjRBF3mcp74sQyuDH4VMYDGd1YtXjb2/go-block-format
"
)
// ParallelBatchCommits is the number of batch commits that can be in-flight before blocking.
...
...
coding.go
View file @
2b1de3e6
...
...
@@ -5,12 +5,12 @@ import (
"sort"
"strings"
"gx/ipfs/Qm
YsEQydGrsxNZfAiskvQ76N2xE9hDQtSAkRSynwMiUK3c
/go-block-format"
"gx/ipfs/Qm
ej7nf81hi2x2tvjRBF3mcp74sQyuDH4VMYDGd1YtXjb2
/go-block-format"
pb
"github.com/ipfs/go-ipfs/merkledag/pb"
node
"gx/ipfs/Qm
NwUEK7QbwSqyKBu3mMtToo8SUc6wQJ7gdZq4gGGJqfnf/go-ipld-format
"
cid
"gx/ipfs/Qme
Srf6pzut73u6zLQkRFQ3ygt3k6XFT2kjdYP8Tnkwwyg/go-cid
"
cid
"gx/ipfs/Qm
cZfnkapfECQGcLZaf9B79NRg7cRa9EnZh4LSbkCzwNvY/go-cid
"
node
"gx/ipfs/Qme
5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES/go-ipld-format
"
)
// for now, we use a PBNode intermediate thing.
...
...
merkledag.go
View file @
2b1de3e6
...
...
@@ -9,9 +9,9 @@ import (
bserv
"github.com/ipfs/go-ipfs/blockservice"
offline
"github.com/ipfs/go-ipfs/exchange/offline"
node
"gx/ipfs/QmN
wUEK7QbwSqyKBu3mMtToo8SUc6wQJ7gdZq4gGGJqfnf
/go-ipld-
format
"
cid
"gx/ipfs/Qm
eSrf6pzut73u6zLQkRFQ3ygt3k6XFT2kjdYP8Tnkwwyg
/go-cid"
ipldcbor
"gx/ipfs/Qme
Zv9VXw2SfVbX55LV6kGTWASKBc9ZxAVqGBeJcDGdoXy
/go-ipld-
cbor
"
ipldcbor
"gx/ipfs/QmN
Rz7BDWfdFNVLt7AVvmRefkrURD25EeoipcXqo6yoXU1
/go-ipld-
cbor
"
cid
"gx/ipfs/Qm
cZfnkapfECQGcLZaf9B79NRg7cRa9EnZh4LSbkCzwNvY
/go-cid"
node
"gx/ipfs/Qme
5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES
/go-ipld-
format
"
)
// TODO: We should move these registrations elsewhere. Really, most of the IPLD
...
...
merkledag_test.go
View file @
2b1de3e6
...
...
@@ -22,11 +22,11 @@ import (
mdpb
"github.com/ipfs/go-ipfs/merkledag/pb"
dstest
"github.com/ipfs/go-ipfs/merkledag/test"
uio
"github.com/ipfs/go-ipfs/unixfs/io"
blocks
"gx/ipfs/Qm
YsEQydGrsxNZfAiskvQ76N2xE9hDQtSAkRSynwMiUK3c
/go-block-format"
blocks
"gx/ipfs/Qm
ej7nf81hi2x2tvjRBF3mcp74sQyuDH4VMYDGd1YtXjb2
/go-block-format"
node
"gx/ipfs/QmN
wUEK7QbwSqyKBu3mMtToo8SUc6wQJ7gdZq4gGGJqfnf/go-ipld-format
"
u
"gx/ipfs/Qm
PsAfmDBnZN3kZGSuNwvCNDZiHneERSKmRcFyG3UkvcT3/go-ipfs-util
"
cid
"gx/ipfs/Qme
Srf6pzut73u6zLQkRFQ3ygt3k6XFT2kjdYP8Tnkwwyg/go-cid
"
u
"gx/ipfs/QmN
iJuT8Ja3hMVpBHXv3Q6dwmperaQ6JjLtpMQgMCD7xvx/go-ipfs-util
"
cid
"gx/ipfs/Qm
cZfnkapfECQGcLZaf9B79NRg7cRa9EnZh4LSbkCzwNvY/go-cid
"
node
"gx/ipfs/Qme
5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES/go-ipld-format
"
)
func
TestNode
(
t
*
testing
.
T
)
{
...
...
node.go
View file @
2b1de3e6
...
...
@@ -5,9 +5,9 @@ import (
"encoding/json"
"fmt"
node
"gx/ipfs/Qm
NwUEK7QbwSqyKBu3mMtToo8SUc6wQJ7gdZq4gGGJqfnf/go-ipld-format
"
mh
"gx/ipfs/Qm
YeKnKpubCMRiq3PGZcTREErthbb5Q9cXsCoSkD9bjEBd/go-multihash
"
cid
"gx/ipfs/Qme
Srf6pzut73u6zLQkRFQ3ygt3k6XFT2kjdYP8Tnkwwyg/go-cid
"
mh
"gx/ipfs/Qm
ZyZDi491cCNTLfAhwcaDii2Kg4pwKRkhqQzURGDvY6ua/go-multihash
"
cid
"gx/ipfs/Qm
cZfnkapfECQGcLZaf9B79NRg7cRa9EnZh4LSbkCzwNvY/go-cid
"
node
"gx/ipfs/Qme
5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES/go-ipld-format
"
)
var
ErrNotProtobuf
=
fmt
.
Errorf
(
"expected protobuf dag node"
)
...
...
node_test.go
View file @
2b1de3e6
...
...
@@ -8,7 +8,7 @@ import (
.
"github.com/ipfs/go-ipfs/merkledag"
mdtest
"github.com/ipfs/go-ipfs/merkledag/test"
node
"gx/ipfs/Qm
NwUEK7QbwSqyKBu3mMtToo8SUc6wQJ7gdZq4gGGJqfnf
/go-ipld-format"
node
"gx/ipfs/Qm
e5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES
/go-ipld-format"
)
func
TestRemoveLink
(
t
*
testing
.
T
)
{
...
...
raw.go
View file @
2b1de3e6
...
...
@@ -2,11 +2,11 @@ package merkledag
import
(
"fmt"
"gx/ipfs/Qm
YsEQydGrsxNZfAiskvQ76N2xE9hDQtSAkRSynwMiUK3c
/go-block-format"
"gx/ipfs/Qm
ej7nf81hi2x2tvjRBF3mcp74sQyuDH4VMYDGd1YtXjb2
/go-block-format"
node
"gx/ipfs/QmN
wUEK7QbwSqyKBu3mMtToo8SUc6wQJ7gdZq4gGGJqfnf/go-ipld-format
"
u
"gx/ipfs/Qm
PsAfmDBnZN3kZGSuNwvCNDZiHneERSKmRcFyG3UkvcT3/go-ipfs-util
"
cid
"gx/ipfs/Qme
Srf6pzut73u6zLQkRFQ3ygt3k6XFT2kjdYP8Tnkwwyg/go-cid
"
u
"gx/ipfs/QmN
iJuT8Ja3hMVpBHXv3Q6dwmperaQ6JjLtpMQgMCD7xvx/go-ipfs-util
"
cid
"gx/ipfs/Qm
cZfnkapfECQGcLZaf9B79NRg7cRa9EnZh4LSbkCzwNvY/go-cid
"
node
"gx/ipfs/Qme
5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES/go-ipld-format
"
)
type
RawNode
struct
{
...
...
test/utils.go
View file @
2b1de3e6
...
...
@@ -5,8 +5,8 @@ import (
bsrv
"github.com/ipfs/go-ipfs/blockservice"
"github.com/ipfs/go-ipfs/exchange/offline"
dag
"github.com/ipfs/go-ipfs/merkledag"
ds
"gx/ipfs/Qm
dHG8MAuARdGHxx4rPQASLcvhz24fzjSQq7AJRAQEorq5
/go-datastore"
dssync
"gx/ipfs/Qm
dHG8MAuARdGHxx4rPQASLcvhz24fzjSQq7AJRAQEorq5
/go-datastore/sync"
ds
"gx/ipfs/Qm
PpegoMqhAEqjncrzArm7KVWAkCm78rqL2DPuNjhPrshg
/go-datastore"
dssync
"gx/ipfs/Qm
PpegoMqhAEqjncrzArm7KVWAkCm78rqL2DPuNjhPrshg
/go-datastore/sync"
)
func
Mock
()
dag
.
DAGService
{
...
...
traverse/traverse.go
View file @
2b1de3e6
...
...
@@ -5,7 +5,7 @@ import (
"context"
"errors"
node
"gx/ipfs/Qm
NwUEK7QbwSqyKBu3mMtToo8SUc6wQJ7gdZq4gGGJqfnf
/go-ipld-format"
node
"gx/ipfs/Qm
e5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES
/go-ipld-format"
)
// Order is an identifier for traversal algorithm orders
...
...
traverse/traverse_test.go
View file @
2b1de3e6
...
...
@@ -8,7 +8,7 @@ import (
mdag
"github.com/ipfs/go-ipfs/merkledag"
mdagtest
"github.com/ipfs/go-ipfs/merkledag/test"
node
"gx/ipfs/Qm
NwUEK7QbwSqyKBu3mMtToo8SUc6wQJ7gdZq4gGGJqfnf
/go-ipld-format"
node
"gx/ipfs/Qm
e5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES
/go-ipld-format"
)
func
TestDFSPreNoSkip
(
t
*
testing
.
T
)
{
...
...
utils/diff.go
View file @
2b1de3e6
...
...
@@ -7,8 +7,8 @@ import (
dag
"github.com/ipfs/go-ipfs/merkledag"
node
"gx/ipfs/Qm
NwUEK7QbwSqyKBu3mMtToo8SUc6wQJ7gdZq4gGGJqfnf/go-ipld-format
"
cid
"gx/ipfs/Qme
Srf6pzut73u6zLQkRFQ3ygt3k6XFT2kjdYP8Tnkwwyg/go-cid
"
cid
"gx/ipfs/Qm
cZfnkapfECQGcLZaf9B79NRg7cRa9EnZh4LSbkCzwNvY/go-cid
"
node
"gx/ipfs/Qme
5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES/go-ipld-format
"
)
const
(
...
...
utils/diffenum.go
View file @
2b1de3e6
...
...
@@ -6,8 +6,8 @@ import (
mdag
"github.com/ipfs/go-ipfs/merkledag"
node
"gx/ipfs/Qm
NwUEK7QbwSqyKBu3mMtToo8SUc6wQJ7gdZq4gGGJqfnf/go-ipld-format
"
cid
"gx/ipfs/Qme
Srf6pzut73u6zLQkRFQ3ygt3k6XFT2kjdYP8Tnkwwyg/go-cid
"
cid
"gx/ipfs/Qm
cZfnkapfECQGcLZaf9B79NRg7cRa9EnZh4LSbkCzwNvY/go-cid
"
node
"gx/ipfs/Qme
5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES/go-ipld-format
"
)
// DiffEnumerate fetches every object in the graph pointed to by 'to' that is
...
...
utils/diffenum_test.go
View file @
2b1de3e6
...
...
@@ -8,8 +8,8 @@ import (
dag
"github.com/ipfs/go-ipfs/merkledag"
mdtest
"github.com/ipfs/go-ipfs/merkledag/test"
node
"gx/ipfs/Qm
NwUEK7QbwSqyKBu3mMtToo8SUc6wQJ7gdZq4gGGJqfnf/go-ipld-format
"
cid
"gx/ipfs/Qme
Srf6pzut73u6zLQkRFQ3ygt3k6XFT2kjdYP8Tnkwwyg/go-cid
"
cid
"gx/ipfs/Qm
cZfnkapfECQGcLZaf9B79NRg7cRa9EnZh4LSbkCzwNvY/go-cid
"
node
"gx/ipfs/Qme
5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES/go-ipld-format
"
)
func
buildNode
(
name
string
,
desc
map
[
string
]
ndesc
,
out
map
[
string
]
node
.
Node
)
node
.
Node
{
...
...
utils/utils.go
View file @
2b1de3e6
...
...
@@ -10,9 +10,9 @@ import (
dag
"github.com/ipfs/go-ipfs/merkledag"
path
"github.com/ipfs/go-ipfs/path"
node
"gx/ipfs/Qm
NwUEK7QbwSqyKBu3mMtToo8SUc6wQJ7gdZq4gGGJqfnf/go-ipld-format
"
ds
"gx/ipfs/Qm
dHG8MAuARdGHxx4rPQASLcvhz24fzjSQq7AJRAQEorq5
/go-datastore"
syncds
"gx/ipfs/Qm
dHG8MAuARdGHxx4rPQASLcvhz24fzjSQq7AJRAQEorq5/go-datastore/sync
"
ds
"gx/ipfs/Qm
PpegoMqhAEqjncrzArm7KVWAkCm78rqL2DPuNjhPrshg/go-datastore
"
sync
ds
"gx/ipfs/Qm
PpegoMqhAEqjncrzArm7KVWAkCm78rqL2DPuNjhPrshg
/go-datastore
/sync
"
node
"gx/ipfs/Qm
e5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES/go-ipld-format
"
)
type
Editor
struct
{
...
...
utils/utils_test.go
View file @
2b1de3e6
...
...
@@ -8,7 +8,7 @@ import (
mdtest
"github.com/ipfs/go-ipfs/merkledag/test"
path
"github.com/ipfs/go-ipfs/path"
cid
"gx/ipfs/Qm
eSrf6pzut73u6zLQkRFQ3ygt3k6XFT2kjdYP8Tnkwwyg
/go-cid"
cid
"gx/ipfs/Qm
cZfnkapfECQGcLZaf9B79NRg7cRa9EnZh4LSbkCzwNvY
/go-cid"
)
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