Skip to content

Commit

Permalink
move util.Key into its own package under blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
whyrusleeping committed Jun 1, 2015
1 parent f3800ad commit 30244e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"fmt"

mh "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
key "github.com/ipfs/go-ipfs/blocks/key"
u "github.com/ipfs/go-ipfs/util"
)

Expand Down Expand Up @@ -35,8 +36,8 @@ func NewBlockWithHash(data []byte, h mh.Multihash) (*Block, error) {
}

// Key returns the block's Multihash as a Key value.
func (b *Block) Key() u.Key {
return u.Key(b.Multihash)
func (b *Block) Key() key.Key {
return key.Key(b.Multihash)
}

func (b *Block) String() string {
Expand Down

0 comments on commit 30244e2

Please sign in to comment.