Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
merkeldag: change SetPrefix param to a pointer and reset the prefix o…
Browse files Browse the repository at this point in the history
…n nil

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
  • Loading branch information
kevina committed Apr 26, 2017
1 parent 123b0fd commit c1e9ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/dirbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func NewDirectoryFromNode(dserv mdag.DAGService, nd node.Node) (*Directory, erro
}

// SetPrefix sets the prefix of the root node
func (d *Directory) SetPrefix(prefix cid.Prefix) {
func (d *Directory) SetPrefix(prefix *cid.Prefix) {
if d.dirnode != nil {
d.dirnode.SetPrefix(prefix)
}
Expand Down

0 comments on commit c1e9ccd

Please sign in to comment.