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
5dc5456c
Commit
5dc5456c
authored
Feb 17, 2017
by
Jakub Sztandera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix formatting in merkledag.go
License: MIT Signed-off-by:
Jakub Sztandera
<
kubuxu@protonmail.ch
>
parent
b84c3650
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
merkledag.go
merkledag.go
+6
-6
No files found.
merkledag.go
View file @
5dc5456c
...
...
@@ -399,12 +399,12 @@ func EnumerateChildrenAsync(ctx context.Context, ds DAGService, c *cid.Cid, visi
done
:=
make
(
chan
struct
{})
var
setlk
sync
.
Mutex
errChan
:=
make
(
chan
error
)
fetchersCtx
,
cancel
:=
context
.
WithCancel
(
ctx
)
defer
cancel
()
for
i
:=
0
;
i
<
FetchGraphConcurrency
;
i
++
{
go
func
()
{
for
ic
:=
range
feed
{
...
...
@@ -413,11 +413,11 @@ func EnumerateChildrenAsync(ctx context.Context, ds DAGService, c *cid.Cid, visi
errChan
<-
err
return
}
setlk
.
Lock
()
unseen
:=
visit
(
ic
)
setlk
.
Unlock
()
if
unseen
{
select
{
case
out
<-
n
:
...
...
@@ -466,7 +466,7 @@ func EnumerateChildrenAsync(ctx context.Context, ds DAGService, c *cid.Cid, visi
}
case
err
:=
<-
errChan
:
return
err
case
<-
ctx
.
Done
()
:
return
ctx
.
Err
()
}
...
...
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