Skip to content

Commit

Permalink
made radix use the hash interface properly
Browse files Browse the repository at this point in the history
  • Loading branch information
zond committed Mar 11, 2013
1 parent 584b415 commit dfcc9ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion radix/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,8 @@ func (self *Tree) Hash() []byte {
self.lock.RLock()
defer self.lock.RUnlock()
hash := murmur.NewString(fmt.Sprint(self.configuration))
return hash.Sum(self.root.hash)
hash.MustWrite(self.root.hash)
return hash.Get()
}

// ToMap will return a dubious map representation of this Tree, where each byte slice key is converted to a string.
Expand Down

0 comments on commit dfcc9ac

Please sign in to comment.