mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-09 17:22:21 +08:00
move util.Key into its own package under blocks
This commit is contained in:
@ -4,6 +4,7 @@ import (
|
||||
"testing"
|
||||
|
||||
context "github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
|
||||
key "github.com/ipfs/go-ipfs/blocks/key"
|
||||
path "github.com/ipfs/go-ipfs/path"
|
||||
mockrouting "github.com/ipfs/go-ipfs/routing/mock"
|
||||
u "github.com/ipfs/go-ipfs/util"
|
||||
@ -33,7 +34,7 @@ func TestRoutingResolve(t *testing.T) {
|
||||
}
|
||||
|
||||
pkhash := u.Hash(pubkb)
|
||||
res, err := resolver.Resolve(context.Background(), u.Key(pkhash).Pretty())
|
||||
res, err := resolver.Resolve(context.Background(), key.Key(pkhash).Pretty())
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user