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-dms3
Commits
e2387ebb
Commit
e2387ebb
authored
Mar 28, 2018
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix hamt node not protobuf error
License: MIT Signed-off-by:
Steven Allen
<
steven@stebalien.com
>
parent
fa9489ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
unixfs/hamt/hamt.go
unixfs/hamt/hamt.go
+1
-1
No files found.
unixfs/hamt/hamt.go
View file @
e2387ebb
...
...
@@ -100,7 +100,7 @@ func makeShard(ds ipld.DAGService, size int) (*Shard, error) {
func
NewHamtFromDag
(
dserv
ipld
.
DAGService
,
nd
ipld
.
Node
)
(
*
Shard
,
error
)
{
pbnd
,
ok
:=
nd
.
(
*
dag
.
ProtoNode
)
if
!
ok
{
return
nil
,
dag
.
Err
LinkNotFound
return
nil
,
dag
.
Err
NotProtobuf
}
pbd
,
err
:=
format
.
FromBytes
(
pbnd
.
Data
())
...
...
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