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-unixfs
Commits
b5263d6a
Commit
b5263d6a
authored
Jun 27, 2018
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use `copy` instead of looping
License: MIT Signed-off-by:
Steven Allen
<
steven@stebalien.com
>
parent
afe71e4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
io/pbdagreader.go
io/pbdagreader.go
+1
-3
No files found.
io/pbdagreader.go
View file @
b5263d6a
...
...
@@ -75,9 +75,7 @@ func (dr *PBDagReader) preloadNextNodes(ctx context.Context) {
end
=
len
(
dr
.
links
)
}
for
i
,
p
:=
range
ipld
.
GetNodes
(
ctx
,
dr
.
serv
,
dr
.
links
[
beg
:
end
])
{
dr
.
promises
[
beg
+
i
]
=
p
}
copy
(
dr
.
promises
[
beg
:
],
ipld
.
GetNodes
(
ctx
,
dr
.
serv
,
dr
.
links
[
beg
:
end
]))
}
// precalcNextBuf follows the next link in line and loads it from the
...
...
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