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
f0dc6dbc
Commit
f0dc6dbc
authored
Dec 06, 2017
by
Łukasz Magiera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
object-patch: Support linking to non-dagpb objects
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
bd7f6d45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
utils/utils.go
utils/utils.go
+3
-2
No files found.
utils/utils.go
View file @
f0dc6dbc
...
...
@@ -212,8 +212,9 @@ func copyDag(nd *dag.ProtoNode, from, to dag.DAGService) error {
}
childpb
,
ok
:=
child
.
(
*
dag
.
ProtoNode
)
if
!
ok
{
return
dag
.
ErrNotProtobuf
if
!
ok
{
// leaf node
_
,
err
:=
to
.
Add
(
nd
)
return
err
}
err
=
copyDag
(
childpb
,
from
,
to
)
...
...
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