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
93ab652f
Commit
93ab652f
authored
May 19, 2015
by
rht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run 'gofmt -s -w' on these files
parent
1e0db6da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
merkledag.go
merkledag.go
+1
-1
merkledag_test.go
merkledag_test.go
+1
-1
No files found.
merkledag.go
View file @
93ab652f
...
@@ -181,7 +181,7 @@ func (ds *dagService) GetNodes(ctx context.Context, keys []u.Key) []NodeGetter {
...
@@ -181,7 +181,7 @@ func (ds *dagService) GetNodes(ctx context.Context, keys []u.Key) []NodeGetter {
promises
:=
make
([]
NodeGetter
,
len
(
keys
))
promises
:=
make
([]
NodeGetter
,
len
(
keys
))
sendChans
:=
make
([]
chan
<-
*
Node
,
len
(
keys
))
sendChans
:=
make
([]
chan
<-
*
Node
,
len
(
keys
))
for
i
,
_
:=
range
keys
{
for
i
:=
range
keys
{
promises
[
i
],
sendChans
[
i
]
=
newNodePromise
(
ctx
)
promises
[
i
],
sendChans
[
i
]
=
newNodePromise
(
ctx
)
}
}
...
...
merkledag_test.go
View file @
93ab652f
...
@@ -132,7 +132,7 @@ func SubtestNodeStat(t *testing.T, n *Node) {
...
@@ -132,7 +132,7 @@ func SubtestNodeStat(t *testing.T, n *Node) {
type
devZero
struct
{}
type
devZero
struct
{}
func
(
_
devZero
)
Read
(
b
[]
byte
)
(
int
,
error
)
{
func
(
_
devZero
)
Read
(
b
[]
byte
)
(
int
,
error
)
{
for
i
,
_
:=
range
b
{
for
i
:=
range
b
{
b
[
i
]
=
0
b
[
i
]
=
0
}
}
return
len
(
b
),
nil
return
len
(
b
),
nil
...
...
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